Skip instead of fail on dependabot. (#5858)

pull/5856/head
SamTV12345 2023-08-03 22:15:35 +02:00 committed by GitHub
parent f0ad176de9
commit bc6b05cea6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 33 deletions

View File

@ -8,6 +8,7 @@ permissions:
jobs: jobs:
withplugins: withplugins:
if: ${{ github.actor != 'dependabot[bot]' }}
name: with plugins name: with plugins
runs-on: ubuntu-latest runs-on: ubuntu-latest
@ -17,17 +18,6 @@ jobs:
node: [16, 18, 20] node: [16, 18, 20]
steps: steps:
-
name: Fail if Dependabot
if: github.actor == 'dependabot[bot]'
run: |
cat <<EOF >&2
Frontend tests skipped because Dependabot can't access secrets.
Manually re-run the jobs to run the frontend tests.
For more information, see:
https://github.blog/changelog/2021-02-19-github-actions-workflows-triggered-by-dependabot-prs-will-run-with-read-only-permissions/
EOF
exit 1
- -
name: Generate Sauce Labs strings name: Generate Sauce Labs strings
id: sauce_strings id: sauce_strings

View File

@ -10,18 +10,9 @@ jobs:
withoutplugins: withoutplugins:
name: without plugins name: without plugins
runs-on: ubuntu-latest runs-on: ubuntu-latest
if: ${{ github.actor != 'dependabot[bot]' }}
steps: steps:
-
name: Fail if Dependabot
if: github.actor == 'dependabot[bot]'
run: |
cat <<EOF >&2
Frontend tests skipped because Dependabot can't access secrets.
Manually re-run the jobs to run the frontend tests.
For more information, see:
https://github.blog/changelog/2021-02-19-github-actions-workflows-triggered-by-dependabot-prs-will-run-with-read-only-permissions/
EOF
exit 1
- -
name: Generate Sauce Labs strings name: Generate Sauce Labs strings
id: sauce_strings id: sauce_strings
@ -74,18 +65,9 @@ jobs:
withplugins: withplugins:
name: with plugins name: with plugins
runs-on: ubuntu-latest runs-on: ubuntu-latest
if: ${{ github.actor != 'dependabot[bot]' }}
steps: steps:
-
name: Fail if Dependabot
if: github.actor == 'dependabot[bot]'
run: |
cat <<EOF >&2
Frontend tests skipped because Dependabot can't access secrets.
Manually re-run the jobs to run the frontend tests.
For more information, see:
https://github.blog/changelog/2021-02-19-github-actions-workflows-triggered-by-dependabot-prs-will-run-with-read-only-permissions/
EOF
exit 1
- -
name: Generate Sauce Labs strings name: Generate Sauce Labs strings
id: sauce_strings id: sauce_strings