Skip to content

Commit

Permalink
if triggered by push, use a default hardcoded ISSUE ID
Browse files Browse the repository at this point in the history
  • Loading branch information
peckjon authored Feb 13, 2025
1 parent f181f6b commit ccf4b5f
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/cicd-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,11 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set ISSUE_ID
if: github.event_name == 'push'
run: echo "ISSUE_ID=69" >> $GITHUB_ENV
- name: Output Issue ID
run: echo ${{ github.event.inputs.ISSUE_ID }}
run: echo ${{ github.event.inputs.ISSUE_ID || env.ISSUE_ID }}
- name: Setup Pages
uses: actions/configure-pages@v1
- name: Set up node with nvm
Expand All @@ -50,7 +53,7 @@ jobs:
script: |
const fs = require('fs')
await github.paginate(github.rest.issues.listComments,
{ owner: 'gh-event-demos', repo: 'random-name-picker', issue_number: ${{ github.event.inputs.ISSUE_ID }} },
{ owner: 'gh-event-demos', repo: 'random-name-picker', issue_number: ${{ github.event.inputs.ISSUE_ID || env.ISSUE_ID }} },
(response) => response.data.map((issuecomment) => issuecomment.user.login)
)
.then((commenters) => {
Expand Down

0 comments on commit ccf4b5f

Please sign in to comment.