Skip to content

Commit

Permalink
Can't trigger checksums inside the matrix or it'll do 4 times, use a …
Browse files Browse the repository at this point in the history
…specific job that runs only if the build job worked
  • Loading branch information
jmarrec committed Apr 17, 2024
1 parent 1c23f23 commit acf9653
Showing 1 changed file with 14 additions and 8 deletions.
22 changes: 14 additions & 8 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -241,14 +241,6 @@ jobs:
overwrite: true
file_glob: true

- name: Trigger the Checksums workflow
if: contains(github.ref, 'refs/tags')
shell: bash
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
gh workflow -R ${{ github.repository }} run checksums.yml -f tag=${{ github.ref_name }}
- name: Remove non-critical folders from the conan cache
shell: bash
if: ${{ contains(github.ref, 'refs/tags') || ((github.event_name == 'push' && github.ref == 'refs/heads/main')) }}
Expand All @@ -259,3 +251,17 @@ jobs:
else
conan cache clean --source --build --download --temp
fi
# Only trigger checksums if all builds succeded and it's a tag
trigger_cheksum:
needs: build
runs-on: ubuntu-latest
steps:
- name: Trigger the Checksums workflow
if: contains(github.ref, 'refs/tags')
shell: bash
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
gh workflow -R ${{ github.repository }} run checksums.yml -f tag=${{ github.ref_name }}

0 comments on commit acf9653

Please sign in to comment.