File tree Expand file tree Collapse file tree 1 file changed +6
-10
lines changed Expand file tree Collapse file tree 1 file changed +6
-10
lines changed Original file line number Diff line number Diff line change @@ -3,10 +3,10 @@ name: Export XML and Release on Tag Push
3
3
on :
4
4
push :
5
5
tags :
6
- - ' * '
6
+ - ' v[0-9]+.[0-9]+.[0-9]+ ' # force semantic versioning
7
7
8
8
jobs :
9
- build :
9
+ build-and-release :
10
10
runs-on : ubuntu-latest
11
11
12
12
env :
@@ -51,16 +51,12 @@ jobs:
51
51
# Workaround for permissions issues in TestCoverage (creating directory for source export)
52
52
chmod 777 $GITHUB_WORKSPACE
53
53
54
- - name : Get latest tag
55
- id : tag
56
- uses : actions-ecosystem/action-get-latest-tag@v1
57
-
58
54
- name : Export XML
59
55
run : |
60
56
# Pick the targets to export as XML
61
57
echo 'set list("TestCoverage.*.cls") = ""' >> export
62
58
echo 'set list("TestCoverage.inc") = ""' >> export
63
- echo 'do $System.OBJ.Export(.list,"/source/TestCoverage-${{ steps.tag.outputs.tag }}.xml","/exportversion=2017.2")' >> export
59
+ echo 'do $System.OBJ.Export(.list,"/source/TestCoverage-${{ github.ref_name }}.xml","/exportversion=2017.2")' >> export
64
60
docker exec --interactive $instance iris session $instance -B < export
65
61
66
62
- name : Create Release
69
65
env :
70
66
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
71
67
with :
72
- files : TestCoverage-${{ steps.tag.outputs.tag }}.xml
73
- tag_name : ${{ github.ref }}
74
- name : ${{ steps.tag.outputs.tag }}
68
+ files : TestCoverage-${{ github.ref_name }}.xml
69
+ tag_name : ${{ github.ref_name }}
70
+ name : ${{ github.ref_name }}
75
71
body : |
76
72
Automated release created by [action-gh-release](https://github.com/softprops/action-gh-release).
77
73
draft : false
You can’t perform that action at this time.
0 commit comments