diff options
author | TheFox0x7 <thefox0x7@gmail.com> | 2024-05-19 12:35:31 +0200 |
---|---|---|
committer | TheFox0x7 <thefox0x7@gmail.com> | 2024-05-19 13:16:09 +0200 |
commit | 80896601aa594b6524b5514bb03263e6d97b8320 (patch) | |
tree | 449678db6b469aded7cfd409fb9734de1aa326f6 /.forgejo | |
parent | Merge pull request 'there is a typo in the error message' (#188) from buddysp... (diff) | |
download | forgejo-runner-80896601aa594b6524b5514bb03263e6d97b8320.tar.xz forgejo-runner-80896601aa594b6524b5514bb03263e6d97b8320.zip |
update build action to v5
Diffstat (limited to '.forgejo')
-rw-r--r-- | .forgejo/workflows/build-release-integration.yml | 8 | ||||
-rw-r--r-- | .forgejo/workflows/build-release.yml | 16 |
2 files changed, 15 insertions, 9 deletions
diff --git a/.forgejo/workflows/build-release-integration.yml b/.forgejo/workflows/build-release-integration.yml index 6dda88d..1f95c25 100644 --- a/.forgejo/workflows/build-release-integration.yml +++ b/.forgejo/workflows/build-release-integration.yml @@ -1,12 +1,18 @@ name: Integration tests for the release process -on: +on: push: paths: - go.mod - Dockerfile - .forgejo/workflows/build-release.yml - .forgejo/workflows/build-release-integration.yml + pull_request: + paths: + - go.mod + - Dockerfile + - .forgejo/workflows/build-release.yml + - .forgejo/workflows/build-release-integration.yml jobs: release-simulation: diff --git a/.forgejo/workflows/build-release.yml b/.forgejo/workflows/build-release.yml index c09049f..4e66a0a 100644 --- a/.forgejo/workflows/build-release.yml +++ b/.forgejo/workflows/build-release.yml @@ -35,8 +35,7 @@ jobs: - name: Sanitize the name of the repository id: repository run: | - repository="${{ github.repository }}" - echo "value=${repository##*/}" >> "$GITHUB_OUTPUT" + echo "value=${GITHUB_REPOSITORY##*/}" >> "$GITHUB_OUTPUT" - name: create test TOKEN id: token @@ -55,8 +54,7 @@ jobs: - name: version from ref_name id: tag-version run: | - version="${{ github.ref_name }}" - version=${version##*v} + version=${GITHUB_REF_NAME##*v} echo "value=$version" >> "$GITHUB_OUTPUT" - name: release notes @@ -72,13 +70,14 @@ jobs: - name: build without TOKEN if: ${{ secrets.TOKEN == '' }} - uses: https://code.forgejo.org/forgejo/forgejo-build-publish/build@v1 + uses: https://code.forgejo.org/forgejo/forgejo-build-publish/build@v5 with: forgejo: "${{ env.GITHUB_SERVER_URL }}" owner: "${{ env.GITHUB_REPOSITORY_OWNER }}" repository: "${{ steps.repository.outputs.value }}" doer: root - tag-version: "${{ steps.tag-version.outputs.value }}" + sha: "${{ github.sha }}" + release-version: "${{ steps.tag-version.outputs.value }}" token: ${{ steps.token.outputs.value }} platforms: linux/amd64,linux/arm64 release-notes: "${{ steps.release-notes.outputs.value }}" @@ -88,13 +87,14 @@ jobs: - name: build with TOKEN if: ${{ secrets.TOKEN != '' }} - uses: https://code.forgejo.org/forgejo/forgejo-build-publish/build@v1 + uses: https://code.forgejo.org/forgejo/forgejo-build-publish/build@v5 with: forgejo: "${{ env.GITHUB_SERVER_URL }}" owner: "${{ env.GITHUB_REPOSITORY_OWNER }}" repository: "${{ steps.repository.outputs.value }}" doer: "${{ secrets.DOER }}" - tag-version: "${{ steps.tag-version.outputs.value }}" + sha: "${{ github.sha }}" + release-version: "${{ steps.tag-version.outputs.value }}" token: "${{ secrets.TOKEN }}" platforms: linux/amd64,linux/arm64 release-notes: "${{ steps.release-notes.outputs.value }}" |