Skip to content

Commit

Permalink
ci: Prevent PR WF to run twice (#885)
Browse files Browse the repository at this point in the history
* ci: Prevent PR WF to run twice

* ci: new test
  • Loading branch information
kumy authored Dec 26, 2023
1 parent 619aa75 commit e66bead
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/automatic-rebase.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
steps:

- name: Checkout the latest code
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
ref: feature/new-theme
token: ${{ secrets.GH_TOKEN }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/docker-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
docker:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pr-rebase.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
)
steps:
- name: Checkout the latest code
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
token: ${{ secrets.GH_TOKEN }}
fetch-depth: 0 # otherwise, you will fail to push refs to dest repo
Expand Down
8 changes: 5 additions & 3 deletions .github/workflows/robot-framework.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
name: Integration tests on Robot Framework

on:
pull_request:
pull_request_target:
branches-ignore:
- master
- l10n_main
- l10n_master
- l10n_new-theme
types:
- closed
push:
branches-ignore:
- master
Expand All @@ -25,11 +27,11 @@ env:

jobs:
robot-framework:
if: "${{ !contains(github.event.head_commit.message, 'skip translate') && !contains(github.event.head_commit.message, 'skip test-qa') }}"
if: "${{ (github.event_name == 'push' || github.event.pull_request.merged == true) && !contains(github.event.head_commit.message, 'skip tests-qa') }}"
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Set output
id: vars
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/sentry-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Create Sentry release
uses: getsentry/action-release@v1
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/translations.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Set output
id: vars
Expand Down

0 comments on commit e66bead

Please sign in to comment.