Skip to content

Commit e3a4dc4

Browse files
committed
Enable Github CLI to access repo in run step.
1 parent c1a9b75 commit e3a4dc4

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

.github/workflows/deploy.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,8 @@ jobs:
6464
WORKFLOW_ID= $(gh workflow list --repo ${{github.repositoryUrl}} --json id,name --jq '.[] | select(.name == ${{github.workflow}}).id')
6565
RUN_ID: $(gh run --repo ${{github.repositoryUrl}} list -w ${WORKFLOW_ID} -b ${{github.ref_name}} --json conclusion --json databaseId --jq 'first(.[] | select(.conclusion == "success")).databaseId' )
6666
echo "runId=${RUN_ID}" >> $GITHUB_OUTPUT
67+
env:
68+
GH_TOKEN: ${{ github.token }}
6769

6870
# Note - github token needed so that actions download can access tfstate files from previous workflow run
6971
- name: Download Terraform State and Lock Files

0 commit comments

Comments
 (0)