Skip to content

Commit 6dbf780

Browse files
authored
feat: Run action on node v20 (#16)
1 parent eb0a6f4 commit 6dbf780

3 files changed

Lines changed: 16 additions & 11 deletions

File tree

.github/workflows/test.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,17 @@ jobs:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- uses: actions/checkout@v2
13-
- uses: actions/setup-node@v3
13+
- name: Build action on node v16
14+
uses: actions/setup-node@v3
1415
with:
1516
node-version: 16
1617
- run: npm install
1718
- run: npm run package
1819
- run: npm run test
20+
- name: Test action on node v20
21+
uses: actions/setup-node@v3
22+
with:
23+
node-version: 20
1924
- id: default
2025
uses: ./
2126
- name: Test current commit hash is used by default

README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ A GitHub Action for using the long and short [hash of a commit][git/commits]
44
— with an optional prefix.
55

66
```
7-
prompt/actions-commit-hash@v2
7+
prompt/actions-commit-hash@v3
88
```
99

1010
:package: [Automatic Release Packaging](#automatic-release-packaging) is used by
@@ -41,10 +41,10 @@ jobs:
4141
steps:
4242
steps:
4343
- id: commit
44-
uses: prompt/actions-commit-hash@v2
45-
- uses: docker/setup-buildx-action@v1
44+
uses: prompt/actions-commit-hash@v3
45+
- uses: docker/setup-buildx-action@v3
4646
- name: Build image for commit
47-
uses: docker/build-push-action@v2
47+
uses: docker/build-push-action@v5
4848
with:
4949
push: true
5050
tags: ${{ steps.commit.outputs.short }}
@@ -71,13 +71,13 @@ jobs:
7171
steps:
7272
steps:
7373
- id: commit
74-
uses: prompt/actions-commit-hash@v2
74+
uses: prompt/actions-commit-hash@v3
7575
with:
7676
commit: "${{ github.event.workflow_run.head_sha }}"
7777
prefix: "sha-"
78-
- uses: docker/setup-buildx-action@v1
78+
- uses: docker/setup-buildx-action@v3
7979
- name: Build image for commit
80-
uses: docker/build-push-action@v2
80+
uses: docker/build-push-action@v5
8181
with:
8282
push: true
8383
tags: ${{ steps.commit.outputs.short }}
@@ -90,8 +90,8 @@ Any reference to this Action in a Workflow must use a [tag][tags] (mutable) or
9090
the commit hash of a tag (immutable).
9191

9292
```yaml
93-
✅ uses: prompt/actions-commit-hash@v2
94-
✅ uses: prompt/actions-commit-hash@v2.0.0
93+
✅ uses: prompt/actions-commit-hash@v3
94+
✅ uses: prompt/actions-commit-hash@v3.0.0
9595
✅ uses: prompt/actions-commit-hash@01d19a83c242e1851c9aa6cf9625092ecd095d09
9696
❌ uses: prompt/actions-commit-hash@main
9797
```

action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,5 @@ outputs:
2020
hash:
2121
description: "Original, 40-character SHA-1 hash received as `commit` input"
2222
runs:
23-
using: "node16"
23+
using: "node20"
2424
main: "dist/index.js"

0 commit comments

Comments
 (0)