517225b99e
* [StepSecurity] Apply security best practices Signed-off-by: StepSecurity Bot <bot@stepsecurity.io> * Delete dependabot.yml Signed-off-by: StepSecurity Bot <bot@stepsecurity.io> Co-authored-by: Jeremy Rose <nornagon@nornagon.net>
34 lines
1.2 KiB
YAML
34 lines
1.2 KiB
YAML
name: Trigger Major Release Dependency Updates
|
|
|
|
on:
|
|
release:
|
|
types: [published]
|
|
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
permissions: # added using https://github.com/step-security/secure-workflows
|
|
contents: read
|
|
|
|
jobs:
|
|
check_tag:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # tag: v3
|
|
- name: Check Tag
|
|
run: |
|
|
if [[ ${{ github.event.release.tag_name }} =~ ^v[0-9]+\.0\.0$ ]]; then
|
|
echo ::set-output name=should_release::true
|
|
fi
|
|
trigger:
|
|
runs-on: ubuntu-latest
|
|
needs: check_tag
|
|
if: needs.check_tag.outputs.should_release == 'true'
|
|
steps:
|
|
- 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
|
|
run: |
|
|
gh api /repos/:owner/mksnapshot/actions/workflows/release.yml/dispatches --input - <<< '{"ref":"main","inputs":{"version":"${{ github.event.release.tag_name }}"}}'
|