Skip to content

Commit

Permalink
Fix duplicate github actions and add cancel workflow (#100)
Browse files Browse the repository at this point in the history
  • Loading branch information
t-hamano authored Mar 8, 2024
1 parent 88128ce commit da16fde
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/run-test-and-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ name: Test and Deploy

on:
push:
branches-ignore:
- '**'
tags:
- '*'

Expand Down
15 changes: 9 additions & 6 deletions .github/workflows/run-test.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@
name: Test

on:
push:
tags-ignore:
- '**'
branches:
- '*'
pull_request:
push:
branches:
- '*'
- main

# Cancels all previous workflow runs for pull requests that have not completed.
concurrency:
# The concurrency group contains the workflow name and the branch name for pull requests
# or the commit hash for any other events.
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.head_ref || github.sha }}
cancel-in-progress: true

jobs:
test:
Expand Down

0 comments on commit da16fde

Please sign in to comment.