File tree 1 file changed +9
-1
lines changed
1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change 6
6
7
7
env :
8
8
CHANGELOG_ARTIFACTS : changelog
9
+ # See: https://github.com/actions/setup-node/#readme
10
+ NODE_VERSION : 14.x
9
11
10
12
jobs :
11
13
create-changelog :
15
17
- name : Checkout
16
18
uses : actions/checkout@v2
17
19
20
+ - name : Install Node.js
21
+ uses : actions/setup-node@v3
22
+ with :
23
+ node-version : ${{ env.NODE_VERSION }}
24
+ registry-url : ' https://registry.npmjs.org'
25
+
18
26
- name : Get Tag
19
27
id : tag_name
20
28
run : |
26
34
mkdir "${{ github.workspace }}/${{ env.CHANGELOG_ARTIFACTS }}"
27
35
28
36
# Get the changelog file name to build
29
- CHANGELOG_FILE_NAME="${{ steps.tag_name.outputs.TAG_NAME }}-$(date --iso-8601= s).md"
37
+ CHANGELOG_FILE_NAME="${{ steps.tag_name.outputs.TAG_NAME }}-$(date +% s).md"
30
38
31
39
# Create manifest file pointing to latest changelog file name
32
40
echo "$CHANGELOG_FILE_NAME" >> "${{ github.workspace }}/${{ env.CHANGELOG_ARTIFACTS }}/latest.txt"
You can’t perform that action at this time.
0 commit comments