Skip to content

Commit ba701fb

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

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

.github/workflows/build-push.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515

1616
- name: Add INPUT_SHA env var
1717
run: |
18-
export INPUT_SHA=$(git rev-parse ${{ github.event.inputs.ref }})
18+
export INPUT_SHA=$(git rev-parse ${{ github.ref }})
1919
echo "INPUT_SHA=`echo $INPUT_SHA`" >> $GITHUB_ENV
2020
2121
- name: Install Node ${{ env.NODE_VERSION }}
@@ -73,16 +73,14 @@ jobs:
7373
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
7474

7575
- name: Install branch-github-actions
76-
if: ${{ github.ref == 'refs/heads/master' }}
7776
uses: actions/checkout@v4
7877
with:
7978
repository: BranchMetrics/branch-github-actions
8079
ref: master
8180
path: .branch-github-actions
82-
token: ${{ secrets.BRANCHLET_ACCESS_TOKEN }}
81+
token: ${{ secrets.BRANCHLET_ACCESS_TOKEN_PUBLIC }}
8382

8483
- name: Get next release version
85-
if: ${{ github.ref == 'refs/heads/master' }}
8684
uses: actions/github-script@v7
8785
id: next-version
8886
with:

.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)