Skip to content

Commit

Permalink
fix the triggers
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulinaPacyna committed Oct 31, 2023
1 parent dce107d commit da3bc74
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/run-feature-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@ name: Feature tests

on:
push:
branches: [ "main" ]
branches_ignore:
- "main"
- "release"
workflow_dispatch:

permissions:
Expand Down
23 changes: 23 additions & 0 deletions .github/workflows/run-release-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Feature tests

on:
push:
branches:
- "release"
workflow_dispatch:

permissions:
contents: read

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Send feature dispatch
run: |
curl -XPOST -u "PaulinaPacyna:${{secrets.PAT_TOKEN}}" \
-H "Accept: application/vnd.github.everest-preview+json" \
-H "Content-Type: application/json" https://api.github.com/repos/PaulinaPacyna/test_annotation_checker/dispatches \
--data '{"event_type": "release"}' \
--fail-with-body
3 changes: 2 additions & 1 deletion .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ name: Unit tests

on:
push:
branches: [ "main" ]
branches:
- "*"

permissions:
contents: read
Expand Down

0 comments on commit da3bc74

Please sign in to comment.