Skip to content

Commit 89c2bd3

Browse files
authored
Merge pull request #359 from johnbillion/add/workflow-for-built-files-linter-fixes
Add/workflow for built files linter fixes
2 parents c586bab + 95d5bb1 commit 89c2bd3

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

.github/workflows/check-built-files.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,7 @@ jobs:
7474
GH_APP_ID: ${{ secrets.GH_APP_ID }}
7575
GH_APP_PRIVATE_KEY: ${{ secrets.GH_APP_PRIVATE_KEY }}
7676
run: |
77-
echo "${{ env.GH_APP_PRIVATE_KEY }}" > private-key.pem
78-
79-
APP_ID=${{ env.GH_APP_ID }}
77+
echo "$GH_APP_PRIVATE_KEY" > private-key.pem
8078
8179
# Generate JWT
8280
JWT=$(python3 - <<EOF
@@ -85,7 +83,7 @@ jobs:
8583
payload = {
8684
"iat": int(time.time()),
8785
"exp": int(time.time()) + 600, # 10-minute expiration
88-
"iss": $APP_ID
86+
"iss": $GH_APP_ID
8987
}
9088
print(jwt.encode(payload, private_key, algorithm="RS256"))
9189
EOF
@@ -99,7 +97,7 @@ jobs:
9997
# Request Installation Access Token
10098
ACCESS_TOKEN=$(curl -s -X POST -H "Authorization: Bearer $JWT" \
10199
-H "Accept: application/vnd.github.v3+json" \
102-
https://api.github.com/app/installations/$INSTALLATION_ID/access_tokens | jq -r '.token')
100+
"https://api.github.com/app/installations/$INSTALLATION_ID/access_tokens" | jq -r '.token')
103101
104102
echo "ACCESS_TOKEN=$ACCESS_TOKEN" >> "$GITHUB_ENV"
105103
@@ -165,7 +163,7 @@ jobs:
165163
run: |
166164
diff_output=$(git diff)
167165
if [ -n "$diff_output" ]; then
168-
echo "uncommitted_changes=$(echo $diff_output)" >> "$GITHUB_OUTPUT"
166+
echo "uncommitted_changes=$diff_output" >> "$GITHUB_OUTPUT"
169167
fi
170168
171169
- name: Stage changes

0 commit comments

Comments
 (0)