Skip to content

Commit

Permalink
fix: use current branch templates for PR runs
Browse files Browse the repository at this point in the history
  • Loading branch information
wesleytodd committed Mar 2, 2024
1 parent 60372e7 commit 42907b3
Show file tree
Hide file tree
Showing 6 changed files with 4,057 additions and 2,432 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.x, 18.x, 20.x]
node-version: [18.x, 20.x]
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
Expand Down
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,5 +49,5 @@ outputs:
issueNumber:
description: 'If an issue was created, this will be its number'
runs:
using: 'node16'
using: 'node20'
main: 'dist/index.js'
3 changes: 2 additions & 1 deletion lib/issues.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ module.exports.stringifiedIssueTemplate = async function stringifiedIssueTemplat
const response = await client.repos.getContents({
owner: options.owner,
repo: options.repo,
path: `.github/ISSUE_TEMPLATE/${options.template}`
path: `.github/ISSUE_TEMPLATE/${options.template}`,
ref: options.ref || 'main'
})

// check that we're not trying to parse a file that doesn't exist. If we are, throw.
Expand Down
Loading

0 comments on commit 42907b3

Please sign in to comment.