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

Commit c4aaa9d

Browse files
authored
fix: Fixed github action runs against forked repos (#280)
* chore: savepoint chore: savepoint chore: savepoint chore: savepoint chore: savepoint chore: savepoint fix: fix typo fix: fix typo chore: savepoint chore: savepoint chore: savepoint chore: savepoint chore: savepoint chore: savepoint chore: savepoint chore: savepoint chore: savepoint chore: savepoint chore: savepoint chore: savepoint chore: savepoint chore: savepoint chore: savepoint chore: savepoint chore: savepoint chore: savepoint chore: savepoint chore: savepoint chore: savepoint chore: savepoint chore: savepoint chore: savepoint chore: savepoint chore: savepoint chore: savepoint chore: savepoint chore: savepoint chore: savepoint chore: savepoint chore: savepoint chore: savepoint chore: savepoint chore: savepoint chore: savepoint chore: savepoint chore: savepoint chore: savepoint chore: savepoint chore: savepoint chore: savepoint chore: savepoint chore: savepoint chore: savepoint chore: savepoint chore: savepoint chore: savepoint chore: savepoint chore: savepoint chore: savepoint chore: savepoint chore: savepoint chore: savepoint chore: savepoint chore: savepoint chore: savepoint chore: savepoint fix: fix typo * chore: savepoint chore: savepoint feat: test gh action pr-cleanup (#2) * feat: test gh action pr-cleanup * chore: savepoint chore: savepoint chore: savepoint chore: savepoint chore: savepoint chore: savepoint chore: savepoint chore: savepoint chore: savepoint chore: savepoint chore: savepoint chore: savepoint chore: savepoint chore: savepoint chore: savepoint chore: savepoint chore: savepoint chore: savepoint chore: savepoint chore: savepoint chore: savepoint chore: savepoint chore: savepoint chore: savepoint chore: savepoint chore: savepoint chore: savepoint chore: savepoint chore: savepoint * chore: savepoint * chore: savepoint * chore: savepoint * chore: savepoint * chore: savepoint * chore: savepoint * chore: savepoint * feat: do a release 0.4.1 (#3) * chore: savepoint * chore: savepoint * chore: savepoint * feat: do a release 0.4.2 (#4) * chore: savepoint * chore: savepoint (#5) * chore: savepoint * chore: savepoint * chore: savepoint * feat: do release 0.4.4 (#6) * feat: do a release 0.4.4 * chore: savepoint * chore: savepoint * chore: savepoint chore: savepoint chore: savepoint chore: savepoint chore: savepoint chore: savepoint chore: savepoint chore: savepoint chore: savepoint chore: savepoint chore: savepoint
1 parent e9104b4 commit c4aaa9d

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/workflows/pull-request.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
name: Pull request
2+
run-name: "${{ github.event.pull_request.title }} / [${{ github.actor }}] is testing${{ github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name && format(' from fork [{0}]', github.event.pull_request.head.repo.full_name) || format(' from current repo') }} 🚀"
23

34
on:
45
pull_request:
@@ -12,16 +13,18 @@ on:
1213
- "README.md"
1314

1415
concurrency:
15-
group: ${{ github.head_ref }}/${{ github.ref }}
16+
group: ${{ github.event.pull_request.head.repo.full_name }}-${{ github.head_ref }}/${{ github.ref }}
1617
cancel-in-progress: true
1718

1819
env:
1920
PULL_REQUEST_NUMBER: ${{ github.event.pull_request.number }}
2021
PULL_REQUEST_BRANCH: ${{ github.head_ref }}
2122
BRANCH: ${{ github.event.pull_request.head.ref }}
23+
REPOSITORY: ${{ github.event.pull_request.head.repo.full_name }}
2224
REGISTRY: ghcr.io
2325
IMAGE_NAME: "ghcr.io/${{ github.repository }}"
2426
RELEASE: false
27+
FORKED: ${{ github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name }}
2528

2629
jobs:
2730
config:
@@ -37,6 +40,7 @@ jobs:
3740
- name: Checkout
3841
uses: actions/checkout@v3
3942
with:
43+
repository: ${{ env.REPOSITORY }}
4044
ref: ${{ env.BRANCH }}
4145

4246
- name: Read config
@@ -70,6 +74,7 @@ jobs:
7074
- name: Checkout
7175
uses: actions/checkout@v3
7276
with:
77+
repository: ${{ env.REPOSITORY }}
7378
ref: ${{ env.BRANCH }}
7479

7580
- name: Setup Golang
@@ -153,6 +158,7 @@ jobs:
153158
- name: Checkout
154159
uses: actions/checkout@v3
155160
with:
161+
repository: ${{ env.REPOSITORY }}
156162
ref: ${{ env.BRANCH }}
157163

158164
- name: Set alpha version
@@ -197,6 +203,7 @@ jobs:
197203
- name: Checkout
198204
uses: actions/checkout@v3
199205
with:
206+
repository: ${{ env.REPOSITORY }}
200207
ref: ${{ env.BRANCH }}
201208

202209
- name: Setup instantclient cache

0 commit comments

Comments
 (0)