tech-docs-release-dispatch.yml
1 # Notifies archivesspace/tech-docs when a new release is published to auto-update 2 # its mention of the latest release. 3 4 name: Tech-docs release dispatch 5 6 on: 7 release: 8 types: [published] 9 10 permissions: 11 contents: read 12 13 jobs: 14 dispatch-tech-docs: 15 if: ${{ !github.event.release.prerelease }} 16 runs-on: ubuntu-latest 17 steps: 18 - uses: actions/github-script@v8 19 with: 20 github-token: ${{ secrets.ASPACE_CI_BOT_TOKEN }} 21 script: | 22 await github.rest.repos.createDispatchEvent({ 23 owner: 'archivesspace', 24 repo: 'tech-docs', 25 event_type: 'new-archivesspace-release', 26 client_payload: { 27 tag_name: context.payload.release.tag_name, 28 html_url: context.payload.release.html_url, 29 }, 30 })