Skip to content

Commit e8f22e7

Browse files
authored
Merge pull request #4 from jan--f/feat/pr-based-olm-catalog
fix: fall back to github.token when REPOSITORY_PUSH_TOKEN is unset
2 parents beea46f + f816814 commit e8f22e7

3 files changed

Lines changed: 7 additions & 7 deletions

File tree

.github/workflows/olm-stable.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
with:
3131
ref: ${{ steps.branch.outputs.name }}
3232
fetch-depth: 0
33-
token: ${{ secrets.REPOSITORY_PUSH_TOKEN }}
33+
token: ${{ secrets.REPOSITORY_PUSH_TOKEN || github.token }}
3434

3535
- name: Setup Go environment
3636
uses: actions/setup-go@v6
@@ -51,7 +51,7 @@ jobs:
5151

5252
- name: Open catalog PR
5353
env:
54-
GH_TOKEN: ${{ secrets.REPOSITORY_PUSH_TOKEN }}
54+
GH_TOKEN: ${{ secrets.REPOSITORY_PUSH_TOKEN || github.token }}
5555
run: |
5656
git config user.name rhobs-release-bot
5757
git config user.email release-bot@monitoring.rhobs.io

.github/workflows/release-branch.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
uses: actions/checkout@v6
3131
with:
3232
fetch-depth: 0
33-
token: ${{ secrets.REPOSITORY_PUSH_TOKEN }}
33+
token: ${{ secrets.REPOSITORY_PUSH_TOKEN || github.token }}
3434
persist-credentials: false
3535

3636
# standard-version's release-as relies on controller-gen for code generation.
@@ -72,7 +72,7 @@ jobs:
7272
uses: actions/checkout@v6
7373
with:
7474
fetch-depth: 0
75-
token: ${{ secrets.REPOSITORY_PUSH_TOKEN }}
75+
token: ${{ secrets.REPOSITORY_PUSH_TOKEN || github.token }}
7676

7777
- name: Setup Go environment
7878
uses: actions/setup-go@v6
@@ -100,7 +100,7 @@ jobs:
100100

101101
- name: Open catalog PR
102102
env:
103-
GH_TOKEN: ${{ secrets.REPOSITORY_PUSH_TOKEN }}
103+
GH_TOKEN: ${{ secrets.REPOSITORY_PUSH_TOKEN || github.token }}
104104
run: |
105105
git config user.name rhobs-release-bot
106106
git config user.email release-bot@monitoring.rhobs.io

.github/workflows/release.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
- uses: actions/checkout@v6
2929
with:
3030
fetch-depth: 0
31-
token: ${{ secrets.REPOSITORY_PUSH_TOKEN }}
31+
token: ${{ secrets.REPOSITORY_PUSH_TOKEN || github.token }}
3232

3333
# Bumping the version in the next step will also run code generation scripts
3434
# that depend on controller-gen.
@@ -60,7 +60,7 @@ jobs:
6060

6161
- name: Open catalog PR
6262
env:
63-
GH_TOKEN: ${{ secrets.REPOSITORY_PUSH_TOKEN }}
63+
GH_TOKEN: ${{ secrets.REPOSITORY_PUSH_TOKEN || github.token }}
6464
run: |
6565
git config user.name rhobs-release-bot
6666
git config user.email release-bot@monitoring.rhobs.io

0 commit comments

Comments
 (0)