Skip to content

Commit

Permalink
ci: amend workflow (#33)
Browse files Browse the repository at this point in the history
  • Loading branch information
theisel committed May 17, 2023
1 parent d56e161 commit b773253
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,20 @@ on:
push:
branches:
- main
- next

pull_request:
paths-ignore:
- '**/*.md'
- ".vscode/**"
- "**/*.md"

concurrency: ${{ github.workflow }}-${{ github.ref }}
concurrency:
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request_target' && github.head_ref || github.ref }}
cancel-in-progress: true

jobs:
format:
name: Format
if: github.ref_name == 'main'
uses: ./.github/workflows/format.yml
secrets: inherit
with:
Expand All @@ -23,7 +26,6 @@ jobs:
test:
name: Test
runs-on: ubuntu-latest
needs: [format]

strategy:
fail-fast: false
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/format.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,4 @@ jobs:
uses: stefanzweifel/git-auto-commit-action@v4
with:
branch: ${{ inputs.ref }}
commit_message: 'chore(style): [ci] format'
commit_message: 'style: [ci] format'

0 comments on commit b773253

Please sign in to comment.