Skip to content

Commit a4f3ebf

Browse files
authored
steps.date.outputs.date
1 parent 4435ad9 commit a4f3ebf

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

.github/workflows/format_then_test.yml

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -54,16 +54,16 @@ jobs:
5454
token: ${{secrets.CODECOV_TOKEN}}
5555
file: ./coverage/lcov.info
5656

57-
# Parse a tag from the commit message
58-
- id: get-tag
59-
shell: python3 {0}
60-
run: |
61-
import json
62-
import os
63-
with open(os.environ['GITHUB_EVENT_PATH']) as fh:
64-
event = json.load(fh)
65-
version = event['head_commit']['message'].split()[0]
66-
print("::set-output name=tag::" + version)
57+
# # Parse a tag from the commit message
58+
# - id: get-tag
59+
# shell: python3 {0}
60+
# run: |
61+
# import json
62+
# import os
63+
# with open(os.environ['GITHUB_EVENT_PATH']) as fh:
64+
# event = json.load(fh)
65+
# version = event['head_commit']['message'].split()[0]
66+
# print("::set-output name=tag::" + version)
6767

6868
# Get current datetime in ISO format
6969
- id: date
@@ -75,12 +75,12 @@ jobs:
7575
# This token is provided by Actions, you do not need to create your own token
7676
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
7777
with:
78-
# tag_name: ${{ steps.date.outputs.date }}v${{ github.run_number }}
79-
# name: ${{ steps.date.outputs.date }}v${{ github.run_number }}
78+
tag_name: ${{ steps.date.outputs.date }}v${{ github.run_number }}
79+
name: ${{ steps.date.outputs.date }}v${{ github.run_number }}
8080
# tag_name: ${{ github.event.commits[0].message }}
8181
# name: ${{ github.event.commits[0].message }}
82-
tag_name: v${{ steps.get-tag.outputs.tag }}
83-
name: ${{ steps.get-tag.outputs.tag }}
82+
# tag_name: v${{ steps.get-tag.outputs.tag }}
83+
# name: ${{ steps.get-tag.outputs.tag }}
8484
body: |
8585
See CHANGELOG.md
8686
draft: false

0 commit comments

Comments
 (0)