Skip to content

Commit 64abc28

Browse files
committed
Fixes linting errors
1 parent 5bb36e2 commit 64abc28

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/check-changes-to-env.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,15 @@ jobs:
2020
echo "pr-number=${PR_NUMBER}" >> $GITHUB_OUTPUT
2121
- name: Comment when dummy.txt changes
2222
uses: actions/github-script@v7
23+
env:
24+
PR_NUMBER: ${{ steps.get-pr-number.outputs.pr-number }}
25+
REPO: ${{ github.repository }}
2326
with:
2427
script: |
2528
const filename = ".env.example"
2629
const filenameSha256 = await sha256(filename)
27-
const diffURL = "https://github.com/${{ github.repository }}/pull/${{ steps.get-pr-number.outputs.pr-number }}/files#diff-" + filenameSha256
28-
const docsURL = "https://github.com/${{ github.repository }}/wiki/Setting-Environment-Variables"
30+
const diffURL = `https://github.com/${process.env.REPO}/pull/${process.env.PR_NUMBER}/files#diff-${filenameSha256}`
31+
const docsURL = `https://github.com/${process.env.REPO}/wiki/Setting-Environment-Variables`
2932
const commentBody = `⚠️ It looks like [${filename}](${diffURL}) has changed. Remember to update the [Setting Environment Variables](${docsURL}) article accordingly.`
3033
const listComments = await github.rest.issues.listComments({
3134
...context.repo,

0 commit comments

Comments
 (0)