3 Commits

Author SHA1 Message Date
9e338b2aaf chore(deps): update github artifact actions
All checks were successful
Cog check / Create release (pull_request) Successful in 58s
2026-02-27 00:01:06 +00:00
b9f9f87068 feat: add release job
All checks were successful
Cog release / Create release (push) Successful in 9s
2026-01-04 02:23:22 +02:00
cd9815dfb3 fix(cocogitto/cocogitto-action): checkout head sha 2026-01-04 02:17:45 +02:00
7 changed files with 24 additions and 15 deletions

View File

@@ -1,15 +1,12 @@
--- ---
name: Cog release name: Cog release
on: on:
push:
branches:
- main
workflow_call: workflow_call:
# inputs: inputs:
# check-latest-tag-only: ref:
# type: boolean type: string
# required: false required: false
# default: true default: ""
jobs: jobs:
release: release:
@@ -20,7 +17,7 @@ jobs:
- uses: actions/checkout@v6 - uses: actions/checkout@v6
with: with:
fetch-depth: 0 fetch-depth: 0
ref: ${{ github.event.pull_request.head.sha }} ref: ${{ inputs.ref == '' && github.sha || inputs.ref }}
- run: | - run: |
git config user.name gitea-bot git config user.name gitea-bot
@@ -47,5 +44,5 @@ jobs:
- name: Upload github release - name: Upload github release
uses: softprops/action-gh-release@v2 uses: softprops/action-gh-release@v2
with: with:
body_path: ${{ steps.changelog.outputs.stdout }} body: ${{ steps.changelog.outputs.stdout }}
tag_name: ${{ steps.release.outputs.version }} tag_name: ${{ steps.release.outputs.version }}

View File

@@ -30,7 +30,7 @@ jobs:
uses: actions/checkout@v6 uses: actions/checkout@v6
- name: Retrieve artifacts - name: Retrieve artifacts
id: download id: download
uses: actions/download-artifact@v7 uses: actions/download-artifact@v8
with: with:
name: artifacts name: artifacts
- name: Check if job errored - name: Check if job errored

View File

@@ -77,7 +77,7 @@ jobs:
shell: bash shell: bash
run: printf "${{ steps.tfplan.outputs.exitcode }}" > exitcode; run: printf "${{ steps.tfplan.outputs.exitcode }}" > exitcode;
- name: Upload artifacts - name: Upload artifacts
uses: actions/upload-artifact@v6 uses: actions/upload-artifact@v7
with: with:
name: artifacts name: artifacts
path: | path: |

View File

@@ -0,0 +1,12 @@
---
name: Cog release
on:
push:
branches:
- main
jobs:
release:
name: Create release
runs-on: ubuntu-latest
uses: ./.gitea/workflows/cog-release.yml

View File

@@ -65,7 +65,7 @@ jobs:
# Upload MegaLinter artifacts # Upload MegaLinter artifacts
- name: Archive production artifacts - name: Archive production artifacts
if: success() || failure() if: success() || failure()
uses: actions/upload-artifact@v6 uses: actions/upload-artifact@v7
with: with:
name: MegaLinter reports name: MegaLinter reports
path: | path: |

View File

@@ -25,7 +25,7 @@ jobs:
uses: actions/checkout@v6 uses: actions/checkout@v6
- name: Retrieve artifacts - name: Retrieve artifacts
id: download id: download
uses: actions/download-artifact@v7 uses: actions/download-artifact@v8
with: with:
name: artifacts name: artifacts
- name: Check if job errored - name: Check if job errored

View File

@@ -72,7 +72,7 @@ jobs:
shell: bash shell: bash
run: printf "${{ steps.tfplan.outputs.exitcode }}" > exitcode; run: printf "${{ steps.tfplan.outputs.exitcode }}" > exitcode;
- name: Upload artifacts - name: Upload artifacts
uses: actions/upload-artifact@v6 uses: actions/upload-artifact@v7
with: with:
name: artifacts name: artifacts
path: | path: |