Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 11 additions & 11 deletions .github/workflows/build-and-review-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v6
with:
fetch-depth: 0

Expand Down Expand Up @@ -108,11 +108,11 @@ jobs:
# -----------------------------------
# Check if action has been recompiled
# -----------------------------------
- name: If action has build step - Setup Node 20.x
uses: actions/setup-node@v4
- name: If action has build step - Setup Node 24.x
uses: actions/setup-node@v5
if: env.HAS_CODE_CHANGES == 'true' && env.HAS_BUILD_STEP == 'true'
with:
node-version: 20.x
node-version: 24.x

- name: If action has build step - Build the action
if: env.HAS_CODE_CHANGES == 'true' && env.HAS_BUILD_STEP == 'true'
Expand Down Expand Up @@ -156,7 +156,7 @@ jobs:
- name: Fail the workflow if there are any outstanding changes
if: env.HAS_CODE_CHANGES == 'true' && (env.NEEDS_BUILD_COMMIT == 'true' || env.NEEDS_README_COMMIT == 'true')
id: summary
uses: actions/github-script@v7
uses: actions/github-script@v9
with:
script: |

Expand Down Expand Up @@ -252,7 +252,7 @@ jobs:

- name: Setup - Checkout testing repo in the root directory
if: always()
uses: actions/checkout@v4
uses: actions/checkout@v6
with:
ref: main
repository: ${{ env.TESTING_REPO }}
Expand All @@ -261,7 +261,7 @@ jobs:

- name: Setup - Checkout this action (git-version-lite) into a 'gvl' subdirectory
if: always()
uses: actions/checkout@v4
uses: actions/checkout@v6
with:
path: ./gvl

Expand Down Expand Up @@ -419,7 +419,7 @@ jobs:

- name: Setup - Checkout testing repo in the root directory
if: always()
uses: actions/checkout@v4
uses: actions/checkout@v6
with:
ref: main
repository: ${{ env.TESTING_REPO }}
Expand All @@ -428,7 +428,7 @@ jobs:

- name: Setup - Checkout this action (git-version-lite) into a 'gvl' subdirectory
if: always()
uses: actions/checkout@v4
uses: actions/checkout@v6
with:
path: ./gvl

Expand Down Expand Up @@ -702,7 +702,7 @@ jobs:

- name: Setup - Checkout testing repo in the root directory
if: always()
uses: actions/checkout@v4
uses: actions/checkout@v6
with:
ref: main
repository: ${{ env.TESTING_REPO }}
Expand All @@ -711,7 +711,7 @@ jobs:

- name: Setup - Checkout this action (git-version-lite) into a 'gvl' subdirectory
if: always()
uses: actions/checkout@v4
uses: actions/checkout@v6
with:
path: ./gvl

Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/increment-version-on-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ jobs:
steps:
- name: Check if merge to default branch
id: merge
uses: actions/github-script@v7
uses: actions/github-script@v9
with:
script: |
const defaultBranch = 'main';
Expand All @@ -69,7 +69,7 @@ jobs:

- name: Checkout
if: env.MERGE_TO_MAIN == 'true'
uses: actions/checkout@v4
uses: actions/checkout@v6

- name: If PR is merged to main - Check for code changes to the action source code
if: env.MERGE_TO_MAIN == 'true'
Expand All @@ -91,7 +91,7 @@ jobs:

- name: If PR is merged to main & PR has source code changes - Checkout
if: env.MERGE_TO_MAIN == 'true' && steps.source-code.outputs.HAS_CHANGES == 'true'
uses: actions/checkout@v4
uses: actions/checkout@v6
with:
ref: main
fetch-depth: 0
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,13 +112,13 @@ jobs:
NEXT_VERSION: ${{ steps.get-version.outputs.NEXT_VERSION }}

steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6
with:
fetch-depth: 0 # Includes all history for all branches and tags

- id: get-version
# You may also reference just the major version.
uses: im-open/git-version-lite@v3.2.1
uses: im-open/git-version-lite@v3.3.0
with:
calculate-prerelease-version: true
branch-name: ${{ github.head_ref }} # github.head_ref works when the trigger is pull_request
Expand Down
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,5 +59,5 @@ outputs:
description: 'The calculated next release version without the tag prefix. This version will not contain the branch when calculating a pre-release version.'

runs:
using: 'node20'
using: 'node24'
main: 'dist/index.js'
Loading
Loading