Skip to content

Commit

Permalink
Merge branch 'main' into dependabot/npm_and_yarn/typescript-eslint/es…
Browse files Browse the repository at this point in the history
…lint-plugin-5.34.0
  • Loading branch information
CatChen authored Aug 22, 2022
2 parents 004a76e + 8f0b8aa commit b2d2fc3
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 2 deletions.
12 changes: 11 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,16 @@ on:
branches: [main]
pull_request:
branches: [main, "[0-9]+-[0-9]+-*"]
workflow_run:
workflows: ["Dependabot Build"]
types:
- completed
workflow_dispatch:

jobs:
build:
name: Build
if: ${{ !startsWith(github.head_ref, 'workflows/tests/') }}
if: ${{ !startsWith(github.head_ref, 'workflows/tests/') && github.actor != 'dependabot[bot]' }}
runs-on: ubuntu-latest
permissions: write-all
steps:
Expand All @@ -34,3 +38,9 @@ jobs:
fail-if-not-clean: true
push-if-not-clean: true
github-token: ${{ secrets.CHECK_GIT_STATUS_ACTION_TOKEN }}

dependabot-build:
name: Dependabot Build
if: ${{ github.actor == 'dependabot[bot]' }}
steps:
- run: exit 0
12 changes: 11 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,16 @@ name: Test
on:
pull_request:
branches: [main, "[0-9]+-[0-9]+-*"]
workflow_run:
workflows: ["Dependabot Test"]
types:
- completed
workflow_dispatch:

jobs:
test:
name: Test
if: ${{ !startsWith(github.head_ref, 'workflows/tests/') }}
if: ${{ !startsWith(github.head_ref, 'workflows/tests/') && github.actor != 'dependabot[bot]' }}
runs-on: ubuntu-latest
permissions: write-all

Expand Down Expand Up @@ -150,3 +154,9 @@ jobs:
TEST_BRANCH_NAME: ${{ format('workflows/tests/{0}-{1}-on-{2}', github.run_number, github.run_attempt, github.sha) }}
run: |
git push -d origin "$TEST_BRANCH_NAME"
dependabot-build:
name: Dependabot Test
if: ${{ github.actor == 'dependabot[bot]' }}
steps:
- run: exit 0

0 comments on commit b2d2fc3

Please sign in to comment.