2022-05-25 18:52:41 +00:00
|
|
|
name: Trigger Major Release Dependency Updates
|
|
|
|
|
|
|
|
on:
|
|
|
|
release:
|
|
|
|
types: [published]
|
|
|
|
|
|
|
|
env:
|
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
|
2022-11-16 20:44:25 +00:00
|
|
|
permissions: # added using https://github.com/step-security/secure-workflows
|
|
|
|
contents: read
|
|
|
|
|
2022-05-25 18:52:41 +00:00
|
|
|
jobs:
|
2023-01-10 11:46:30 +00:00
|
|
|
trigger_chromedriver:
|
2022-05-25 18:52:41 +00:00
|
|
|
runs-on: ubuntu-latest
|
2022-06-29 12:55:59 +00:00
|
|
|
steps:
|
2022-11-15 00:46:45 +00:00
|
|
|
- uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # tag: v3
|
2023-01-10 11:46:30 +00:00
|
|
|
- name: Trigger New chromedriver Release
|
2022-05-25 18:52:41 +00:00
|
|
|
run: |
|
2022-09-27 16:24:11 +00:00
|
|
|
if [[ ${{ github.event.release.tag_name }} =~ ^v[0-9]+\.0\.0$ ]]; then
|
2023-01-10 11:46:30 +00:00
|
|
|
gh api /repos/:owner/chromedriver/actions/workflows/release.yml/dispatches --input - <<< '{"ref":"main","inputs":{"version":"${{ github.event.release.tag_name }}"}}'
|
|
|
|
else
|
|
|
|
echo "Not releasing for version ${{ github.event.release.tag_name }}: requires major version change"
|
2022-05-25 18:52:41 +00:00
|
|
|
fi
|
2023-01-10 11:46:30 +00:00
|
|
|
|
|
|
|
trigger_mksnapshot:
|
2022-05-25 18:52:41 +00:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2022-11-15 00:46:45 +00:00
|
|
|
- uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # tag: v3
|
2022-05-25 18:52:41 +00:00
|
|
|
- name: Trigger New mksnapshot Release
|
|
|
|
run: |
|
|
|
|
gh api /repos/:owner/mksnapshot/actions/workflows/release.yml/dispatches --input - <<< '{"ref":"main","inputs":{"version":"${{ github.event.release.tag_name }}"}}'
|