TUF-on-CI create Signing events #1480
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: TUF-on-CI create Signing events | |
on: | |
schedule: | |
- cron: '17 1,7,13,19 * * *' | |
workflow_dispatch: | |
permissions: {} | |
jobs: | |
create-signing-events: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: 'write' # for committing to signing event branch | |
actions: 'write' # for dispatching signing event workflow | |
steps: | |
- name: Create signing events for offline version bumps | |
uses: theupdateframework/tuf-on-ci/actions/create-signing-events@27c49c016591c7cfea57f6b15296f714a5c4a5f6 # v0.13.0 | |
with: | |
token: ${{ secrets.TUF_ON_CI_TOKEN || secrets.GITHUB_TOKEN }} | |
update-issue: | |
runs-on: ubuntu-latest | |
needs: [create-signing-events] | |
if: always() && !cancelled() | |
permissions: | |
issues: 'write' # for modifying Issues | |
steps: | |
- name: Update the issue for the workflow | |
uses: theupdateframework/tuf-on-ci/actions/update-issue@27c49c016591c7cfea57f6b15296f714a5c4a5f6 # v0.13.0 | |
with: | |
token: ${{ secrets.TUF_ON_CI_TOKEN || secrets.GITHUB_TOKEN }} | |
success: ${{ !contains(needs.*.result, 'failure') }} |