build: update release deps workflow (#36530)
This commit is contained in:
parent
414791232a
commit
dfe501941c
1 changed files with 7 additions and 9 deletions
|
@ -11,24 +11,22 @@ permissions: # added using https://github.com/step-security/secure-workflows
|
||||||
contents: read
|
contents: read
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
check_tag:
|
trigger_chromedriver:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # tag: v3
|
- uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # tag: v3
|
||||||
- name: Check Tag
|
- name: Trigger New chromedriver Release
|
||||||
run: |
|
run: |
|
||||||
if [[ ${{ github.event.release.tag_name }} =~ ^v[0-9]+\.0\.0$ ]]; then
|
if [[ ${{ github.event.release.tag_name }} =~ ^v[0-9]+\.0\.0$ ]]; then
|
||||||
echo ::set-output name=should_release::true
|
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"
|
||||||
fi
|
fi
|
||||||
trigger:
|
|
||||||
|
trigger_mksnapshot:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: check_tag
|
|
||||||
if: needs.check_tag.outputs.should_release == 'true'
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # tag: v3
|
- uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # tag: 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
|
- name: Trigger New mksnapshot Release
|
||||||
run: |
|
run: |
|
||||||
gh api /repos/:owner/mksnapshot/actions/workflows/release.yml/dispatches --input - <<< '{"ref":"main","inputs":{"version":"${{ github.event.release.tag_name }}"}}'
|
gh api /repos/:owner/mksnapshot/actions/workflows/release.yml/dispatches --input - <<< '{"ref":"main","inputs":{"version":"${{ github.event.release.tag_name }}"}}'
|
||||||
|
|
Loading…
Add table
Reference in a new issue