Skip to content
This repository was archived by the owner on Mar 13, 2024. It is now read-only.

Commit d335d5f

Browse files
committed
fix remote repo action firing
1 parent 389333d commit d335d5f

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

.github/workflows/code.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ on:
1010
jobs:
1111
lint:
1212
# pull requests are a duplicate of a branch push if within the same repo.
13-
if: github.event_name != 'pull_request' || github.event.pull_request.repository == github.repository
13+
if: github.event_name != 'pull_request' || github.event.repository.full_name != github.repository
1414
runs-on: ubuntu-latest
1515

1616
steps:
@@ -29,7 +29,7 @@ jobs:
2929
tox -e pre-commit,mypy
3030
3131
test:
32-
if: github.event_name != 'pull_request' || github.event.pull_request.repository == github.repository
32+
if: github.event_name != 'pull_request' || github.event.repository.full_name != github.repository
3333
strategy:
3434
fail-fast: false
3535
matrix:
@@ -65,7 +65,7 @@ jobs:
6565
files: cov.xml
6666

6767
container:
68-
if: github.event_name != 'pull_request' || github.event.pull_request.repository == github.repository
68+
if: github.event_name != 'pull_request' || github.event.repository.full_name != github.repository
6969
runs-on: ubuntu-latest
7070
permissions:
7171
contents: read

.github/workflows/docs.yml

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

77
jobs:
88
docs:
9-
if: github.event_name != 'pull_request' || github.event.pull_request.repository == github.repository
9+
if: github.event_name != 'pull_request' || github.event.repository.full_name != github.repository
1010
strategy:
1111
fail-fast: false
1212
matrix:
@@ -15,6 +15,12 @@ jobs:
1515
runs-on: ubuntu-latest
1616

1717
steps:
18+
- name: Dump github context
19+
run: echo "$GITHUB_CONTEXT"
20+
shell: bash
21+
env:
22+
GITHUB_CONTEXT: ${{ toJson(github) }}
23+
1824
- name: Avoid git conflicts when tag and branch pushed at same time
1925
if: startsWith(github.ref, 'refs/tags')
2026
run: sleep 60

0 commit comments

Comments
 (0)