diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1b99ace..baf4e4b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -23,7 +23,7 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 with: - node-version: 16.x + node-version: 20.x cache: npm - run: npm ci - run: npm run build diff --git a/.github/workflows/update-major-version.yml b/.github/workflows/update-major-version.yml new file mode 100644 index 0000000..82eb533 --- /dev/null +++ b/.github/workflows/update-major-version.yml @@ -0,0 +1,31 @@ +name: Update Major Version +run-name: Update ${{ github.event.inputs.main_version }} to ${{ github.event.inputs.target }} + +on: + workflow_dispatch: + inputs: + target: + description: The target tag or reference + required: true + main_version: + type: choice + description: The major version tag to update + options: + - v5 + +jobs: + tag: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + token: ${{ secrets.ACTIONS_BOT_TOKEN }} + fetch-depth: 0 + - name: Git config + run: | + git config user.name actions-bot + git config user.email actions-bot@users.noreply.github.com + - name: Tag new target + run: git tag -f ${{ github.event.inputs.main_version }} ${{ github.event.inputs.target }} + - name: Push new tag + run: git push origin ${{ github.event.inputs.main_version }} --force diff --git a/README.md b/README.md index 5d19c89..3da0489 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,7 @@ If the file does not exist the action exits silently. ```yml - name: Create Issue From File - uses: peter-evans/create-issue-from-file@v4 + uses: peter-evans/create-issue-from-file@v5 with: title: An example issue content-filepath: ./example-content/output.md @@ -46,7 +46,7 @@ To create a project card for the issue, pass the `issue-number` step output to [ ```yml - name: Create Issue From File id: ciff - uses: peter-evans/create-issue-from-file@v4 + uses: peter-evans/create-issue-from-file@v5 with: title: An example issue content-filepath: ./example-content/output.md diff --git a/action.yml b/action.yml index 67ed617..31ba2f9 100644 --- a/action.yml +++ b/action.yml @@ -22,7 +22,7 @@ outputs: issue-number: description: 'The number of the created issue' runs: - using: 'node16' + using: 'node20' main: 'dist/index.js' branding: icon: 'alert-circle' diff --git a/package-lock.json b/package-lock.json index 6bc104b..5612b59 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "create-issue-from-file", - "version": "4.0.0", + "version": "5.0.0", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "create-issue-from-file", - "version": "4.0.0", + "version": "5.0.0", "license": "MIT", "dependencies": { "@actions/core": "^1.10.1", diff --git a/package.json b/package.json index d5f3baa..f2adb79 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "create-issue-from-file", - "version": "4.0.0", + "version": "5.0.0", "private": true, "description": "An action to create an issue using content from a file", "main": "lib/main.js",