post-release.yml 984 B

12345678910111213141516171819202122232425262728293031
  1. name: post-release
  2. on:
  3. release:
  4. branches: [master]
  5. types: [released]
  6. defaults:
  7. run:
  8. shell: bash -euv -o pipefail {0}
  9. jobs:
  10. post-release:
  11. runs-on: ubuntu-latest
  12. steps:
  13. # trigger post-release in dependency repo, this indirection allows the
  14. # dependency repo to be updated often without affecting this repo. At
  15. # the time of this comment, the dependency repo is responsible for
  16. # creating PRs for other dependent repos post-release.
  17. - name: trigger-post-release
  18. continue-on-error: true
  19. run: |
  20. curl -sS -X POST -H "authorization: token ${{secrets.BOT_TOKEN}}" \
  21. "$GITHUB_API_URL/repos/${{secrets.POST_RELEASE_REPO}}/dispatches" \
  22. -d "$(jq -n '{
  23. event_type: "post-release",
  24. client_payload: {
  25. repo: env.GITHUB_REPOSITORY,
  26. version: "${{github.event.release.tag_name}}",
  27. },
  28. }' | tee /dev/stderr)"