Skip to content

Commit d437faf

Browse files
committed
node20
1 parent a210973 commit d437faf

File tree

3 files changed

+15
-14
lines changed

3 files changed

+15
-14
lines changed

.github/workflows/test-with-post-action.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@ on:
66
- main
77
paths:
88
- "actions/with-post-action/**"
9-
- ".github/workflows/test-with-post-action.yaml"
9+
- ".github/workflows/test-with-post-step.yaml"
1010

1111
pull_request:
1212
paths:
1313
- "actions/with-post-action/**"
14-
- ".github/workflows/test-with-post-action.yaml"
14+
- ".github/workflows/test-with-post-step.yaml"
1515
types:
1616
- edited
1717
- opened
@@ -34,12 +34,12 @@ jobs:
3434

3535
- name: Run Create GitHub App Token action
3636
id: command
37-
uses: ./actions/create-github-app-token
3837
run: |
3938
echo "running command"
4039
echo "test_output=test_output_content" >> "${GITHUB_OUTPUT}"
4140
4241
- name: Skip invalid instance
4342
uses: ./actions/with-post-step
44-
run:
45-
echo ${{ steps.command.outputs.test_output }}
43+
with:
44+
main: echo "with-post-step run"
45+
post: echo ${{ steps.command.outputs.test_output }}

actions/with-post-step/README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,15 @@ jobs:
2525

2626
- name: Run Create GitHub App Token action
2727
id: command
28-
uses: ./actions/create-github-app-token
2928
run: |
3029
echo "running command"
3130
echo "test_output=test_output_content" >> "${GITHUB_OUTPUT}"
3231
3332
- name: Skip invalid instance
3433
uses: ./actions/with-post-step
35-
run: echo ${{ steps.command.outputs.test_output }}
34+
with:
35+
main: echo "with-post-step run"
36+
 post: echo ${{ steps.command.outputs.test_output }}
3637
```
3738
3839
<!-- x-release-please-end-version -->

actions/with-post-step/action.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,21 @@
22

33
name: With post step
44

5-
description: 'Generic JS Action to execute a main command and set a command as a post step.'
5+
description: "Generic JS Action to execute a main command and set a command as a post step."
66

77
inputs:
88
main:
9-
description: 'Main command/script.'
9+
description: "Main command/script."
1010
required: true
1111
post:
12-
description: 'Post command/script.'
12+
description: "Post command/script."
1313
required: true
1414
key:
15-
description: 'Name of the state variable used to detect the post step.'
15+
description: "Name of the state variable used to detect the post step."
1616
required: false
1717
default: POST
1818

1919
runs:
20-
using: 'node24'
21-
main: 'main.js'
22-
post: 'main.js'
20+
using: "node20"
21+
main: "main.js"
22+
post: "main.js"

0 commit comments

Comments
 (0)