Skip to content

Commit 4ac342e

Browse files
committed
[patch] use proper secret for gha
1 parent 874f1c3 commit 4ac342e

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

.github/workflows/build-push.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,6 @@ jobs:
1313
steps:
1414
- uses: actions/checkout@v4
1515

16-
- name: Add INPUT_SHA env var
17-
run: |
18-
export INPUT_SHA=$(git rev-parse ${{ github.event.inputs.ref }})
19-
echo "INPUT_SHA=`echo $INPUT_SHA`" >> $GITHUB_ENV
20-
2116
- name: Install Node ${{ env.NODE_VERSION }}
2217
uses: actions/setup-node@v3
2318
with:
@@ -79,7 +74,13 @@ jobs:
7974
repository: BranchMetrics/branch-github-actions
8075
ref: master
8176
path: .branch-github-actions
82-
token: ${{ secrets.BRANCHLET_ACCESS_TOKEN }}
77+
token: ${{ secrets.BRANCHLET_ACCESS_TOKEN_PUBLIC }}
78+
79+
- name: Add INPUT_SHA env var
80+
if: ${{ github.ref == 'refs/heads/master' }}
81+
run: |
82+
export INPUT_SHA=$(git rev-parse ${{ github.ref }})
83+
echo "INPUT_SHA=`echo $INPUT_SHA`" >> $GITHUB_ENV
8384
8485
- name: Get next release version
8586
if: ${{ github.ref == 'refs/heads/master' }}

.github/workflows/deploy-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
repository: BranchMetrics/branch-github-actions
3838
ref: master
3939
path: .branch-github-actions
40-
token: ${{ secrets.BRANCHLET_ACCESS_TOKEN }}
40+
token: ${{ secrets.BRANCHLET_ACCESS_TOKEN_PUBLIC }}
4141

4242
- name: Get next release version
4343
uses: actions/github-script@v7

0 commit comments

Comments
 (0)