Skip to content

Commit

Permalink
[patch] use proper secret for gha
Browse files Browse the repository at this point in the history
  • Loading branch information
bredmond5 committed Nov 7, 2024
1 parent 874f1c3 commit ba701fb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/build-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:

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

- name: Install branch-github-actions
if: ${{ github.ref == 'refs/heads/master' }}
uses: actions/checkout@v4
with:
repository: BranchMetrics/branch-github-actions
ref: master
path: .branch-github-actions
token: ${{ secrets.BRANCHLET_ACCESS_TOKEN }}
token: ${{ secrets.BRANCHLET_ACCESS_TOKEN_PUBLIC }}

- name: Get next release version
if: ${{ github.ref == 'refs/heads/master' }}
uses: actions/github-script@v7
id: next-version
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/deploy-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
repository: BranchMetrics/branch-github-actions
ref: master
path: .branch-github-actions
token: ${{ secrets.BRANCHLET_ACCESS_TOKEN }}
token: ${{ secrets.BRANCHLET_ACCESS_TOKEN_PUBLIC }}

- name: Get next release version
uses: actions/github-script@v7
Expand Down

0 comments on commit ba701fb

Please sign in to comment.