2022-05-25 18:52:41 +00:00
|
|
|
name: Trigger Major Release Dependency Updates
|
|
|
|
|
|
|
|
on:
|
|
|
|
release:
|
|
|
|
types: [published]
|
|
|
|
|
|
|
|
env:
|
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
check_tag:
|
|
|
|
runs-on: ubuntu-latest
|
2022-06-29 12:55:59 +00:00
|
|
|
steps:
|
2022-05-25 18:52:41 +00:00
|
|
|
- uses: actions/checkout@v3
|
|
|
|
- name: Check Tag
|
|
|
|
run: |
|
2022-09-27 16:24:11 +00:00
|
|
|
if [[ ${{ github.event.release.tag_name }} =~ ^v[0-9]+\.0\.0$ ]]; then
|
2022-05-25 18:52:41 +00:00
|
|
|
echo ::set-output name=should_release::true
|
|
|
|
fi
|
|
|
|
trigger:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
needs: check_tag
|
2022-09-26 14:15:37 +00:00
|
|
|
if: needs.check_tag.outputs.should_release == 'true'
|
2022-05-25 18:52:41 +00:00
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
- name: Trigger New chromedriver Release
|
|
|
|
run: |
|
|
|
|
gh api /repos/:owner/chromedriver/actions/workflows/release.yml/dispatches --input - <<< '{"ref":"main","inputs":{"version":"${{ github.event.release.tag_name }}"}}'
|
|
|
|
- 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 }}"}}'
|