Skip to content

Commit

Permalink
Fix duplicate github actions and add cancel workflow (#54)
Browse files Browse the repository at this point in the history
  • Loading branch information
t-hamano committed Mar 6, 2024
1 parent 43c07a6 commit 6926450
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 6926450

Please sign in to comment.