Skip to content

Commit

Permalink
chore: Update pull request number handling in readme and video-todo g…
Browse files Browse the repository at this point in the history
…enerators
  • Loading branch information
dragonfire1119 committed May 3, 2024
1 parent 0f1260a commit 9f1c1aa
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/readme-generator.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@ jobs:
with:
github-token: ${{ secrets.PERSONAL_TOKEN }}
script: |
const pullNumber = ${{ steps.create-pr.outputs.pull-request-number }} || null;
const output = steps.create-pr.outputs.pull-request-number;
const pullNumber = output ? parseInt(output) : null;
if (pullNumber) {
github.rest.issues.addLabels({
issue_number: pullNumber,
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/video-todo-generator.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@ jobs:
with:
github-token: ${{ secrets.PERSONAL_TOKEN }}
script: |
const pullNumber = ${{ steps.create-pr.outputs.pull-request-number }} || null;
const output = steps.create-pr.outputs.pull-request-number;
const pullNumber = output ? parseInt(output) : null;
if (pullNumber) {
github.rest.issues.addLabels({
issue_number: pullNumber,
Expand Down

0 comments on commit 9f1c1aa

Please sign in to comment.