Skip to content

Commit bdc6150

Browse files
authored
Update deploy.yml
1 parent 131ce11 commit bdc6150

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

.github/workflows/deploy.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,14 @@ jobs:
1919
runs-on: ubuntu-latest
2020
if: github.event_name == 'pull_request'
2121
steps:
22+
- name: Sanity-check secret
23+
env:
24+
ORG_PAT: ${{ secrets.ORG_PAT }}
25+
run: |
26+
if [ -z "$ORG_PAT" ]; then
27+
echo "ORG_PAT is empty"; exit 1
28+
fi
29+
2230
- name: Checkout code
2331
uses: actions/checkout@v4
2432
- name: configure aws credentials
@@ -65,7 +73,7 @@ jobs:
6573
6674
- name: Assign team reviewer via GitHub API
6775
env:
68-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
76+
ORG_PAT: ${{ secrets.ORG_PAT }}
6977
run: |
7078
curl -X POST \
7179
-H "Authorization: Bearer $GITHUB_TOKEN" \

0 commit comments

Comments
 (0)