Skip to content

Commit fadd47a

Browse files
authored
Merge branch 'master' into master
2 parents 2d35d60 + 1f13121 commit fadd47a

32 files changed

Lines changed: 601 additions & 208 deletions

.github/workflows/backport.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@ permissions:
1717

1818
jobs:
1919
backport-on-push:
20-
if: github.event_name == 'push'
20+
if: >
21+
github.repository == 'openwisp/openwisp-utils' &&
22+
github.event_name == 'push'
2123
uses: ./.github/workflows/reusable-backport.yml
2224
with:
2325
commit_sha: ${{ github.sha }}
@@ -27,6 +29,7 @@ jobs:
2729

2830
backport-on-comment:
2931
if: >
32+
github.repository == 'openwisp/openwisp-utils' &&
3033
github.event_name == 'issue_comment' &&
3134
github.event.issue.pull_request &&
3235
github.event.issue.pull_request.merged_at != null &&

.github/workflows/bot-autoassign-issue.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@ concurrency:
1515
jobs:
1616
respond-to-assign-request:
1717
runs-on: ubuntu-latest
18-
if: github.event.issue.pull_request == null
18+
if: >
19+
github.repository == 'openwisp/openwisp-utils' &&
20+
github.event.issue.pull_request == null
1921
steps:
2022
- name: Generate GitHub App token
2123
id: generate-token

.github/workflows/bot-autoassign-pr-issue-link.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@ concurrency:
1515

1616
jobs:
1717
auto-assign-issue:
18-
if: github.event.action != 'closed' || github.event.pull_request.merged == false
18+
if: >
19+
github.repository == 'openwisp/openwisp-utils' &&
20+
(github.event.action != 'closed' || github.event.pull_request.merged == false)
1921
runs-on: ubuntu-latest
2022
steps:
2123
- name: Generate GitHub App token

.github/workflows/bot-autoassign-pr-reopen.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,10 @@ concurrency:
1818
jobs:
1919
reassign-on-reopen:
2020
runs-on: ubuntu-latest
21-
if: github.event_name == 'pull_request_target' && github.event.action == 'reopened'
21+
if: >
22+
github.repository == 'openwisp/openwisp-utils' &&
23+
github.event_name == 'pull_request_target' &&
24+
github.event.action == 'reopened'
2225
steps:
2326
- name: Generate GitHub App token
2427
id: generate-token
@@ -49,7 +52,10 @@ jobs:
4952
5053
handle-pr-activity:
5154
runs-on: ubuntu-latest
52-
if: github.event_name == 'issue_comment' && github.event.issue.pull_request
55+
if: >
56+
github.repository == 'openwisp/openwisp-utils' &&
57+
github.event_name == 'issue_comment' &&
58+
github.event.issue.pull_request
5359
steps:
5460
- name: Generate GitHub App token
5561
id: generate-token

.github/workflows/bot-autoassign-stale-pr.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ concurrency:
1616

1717
jobs:
1818
manage-stale-prs-python:
19+
if: github.repository == 'openwisp/openwisp-utils'
1920
runs-on: ubuntu-latest
2021
steps:
2122
- name: Generate GitHub App token

.github/workflows/bot-changelog-runner.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@ permissions:
1515
jobs:
1616
fetch-metadata:
1717
runs-on: ubuntu-latest
18-
if: github.event.workflow_run.conclusion == 'success'
18+
if: >
19+
github.repository == 'openwisp/openwisp-utils' &&
20+
github.event.workflow_run.conclusion == 'success'
1921
outputs:
2022
pr_number: ${{ steps.metadata.outputs.pr_number }}
2123
steps:
@@ -41,7 +43,9 @@ jobs:
4143
4244
changelog:
4345
needs: fetch-metadata
44-
if: needs.fetch-metadata.outputs.pr_number != ''
46+
if: >
47+
github.repository == 'openwisp/openwisp-utils' &&
48+
needs.fetch-metadata.outputs.pr_number != ''
4549
uses: openwisp/openwisp-utils/.github/workflows/reusable-bot-changelog.yml@master
4650
with:
4751
pr_number: ${{ needs.fetch-metadata.outputs.pr_number }}

.github/workflows/bot-changelog-trigger.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ on:
66

77
jobs:
88
check:
9-
if: |
9+
if: >
10+
github.repository == 'openwisp/openwisp-utils' &&
1011
github.event.review.state == 'approved' &&
1112
(github.event.review.author_association == 'OWNER' ||
1213
github.event.review.author_association == 'MEMBER' ||

.github/workflows/bot-ci-failure.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,10 @@ concurrency:
1818
jobs:
1919
find-pr:
2020
runs-on: ubuntu-latest
21-
if: ${{ github.event.workflow_run.conclusion == 'failure' && github.event.workflow_run.event == 'pull_request' }}
21+
if: >
22+
github.repository == 'openwisp/openwisp-utils' &&
23+
github.event.workflow_run.conclusion == 'failure' &&
24+
github.event.workflow_run.event == 'pull_request'
2225
outputs:
2326
pr_number: ${{ steps.pr.outputs.number }}
2427
pr_author: ${{ steps.pr.outputs.author }}
@@ -67,7 +70,9 @@ jobs:
6770
6871
call-ci-failure-bot:
6972
needs: find-pr
70-
if: ${{ needs.find-pr.outputs.pr_number != '' }}
73+
if: >
74+
github.repository == 'openwisp/openwisp-utils' &&
75+
needs.find-pr.outputs.pr_number != ''
7176
permissions:
7277
pull-requests: write
7378
actions: write

.github/workflows/ci.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,18 +76,20 @@ jobs:
7676
run: ./run-qa-checks
7777

7878
- name: Tests
79-
if: ${{ !cancelled() && steps.deps.conclusion == 'success' }}
79+
if: >
80+
!cancelled() &&
81+
steps.deps.conclusion == 'success'
8082
run: ./runtests
8183
env:
8284
SELENIUM_HEADLESS: 1
8385
GECKO_LOG: 1
8486

8587
- name: Show gecko web driver log on failures
86-
if: ${{ failure() }}
88+
if: failure()
8789
run: cat geckodriver.log
8890

8991
- name: Upload Coverage
90-
if: ${{ success() }}
92+
if: success()
9193
uses: coverallsapp/github-action@v2
9294
with:
9395
parallel: true
@@ -97,6 +99,7 @@ jobs:
9799
fail-on-error: false
98100

99101
coveralls:
102+
if: github.repository == 'openwisp/openwisp-utils'
100103
needs: build
101104
runs-on: ubuntu-latest
102105
steps:

.github/workflows/pypi.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ permissions:
99

1010
jobs:
1111
pypi-publish:
12+
if: github.repository == 'openwisp/openwisp-utils'
1213
name: Release Python Package on Pypi.org
1314
runs-on: ubuntu-latest
1415
environment:

0 commit comments

Comments
 (0)