File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change 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
+
54
58
- name : Build, Test, and Export XML
55
59
run : |
56
60
# Run build
@@ -62,19 +66,18 @@ jobs:
62
66
# Pick the targets to export as XML
63
67
echo 'set list("TestCoverage.*.cls") = ""' >> export
64
68
echo 'set list("TestCoverage.inc") = ""' >> export
65
- echo 'do $System.OBJ.Export(.list,"TestCoverage-${{ github.ref }}.xml","/exportversion=2017.2")' >> export
69
+ echo 'do $System.OBJ.Export(.list,"TestCoverage-${{ steps.tag.outputs.tag }}.xml","/exportversion=2017.2")' >> export
66
70
docker exec --interactive $instance iris session $instance -B < build && docker exec --interactive $instance iris session $instance -B < test && docker exec --interactive $instance iris session $instance -B < export
67
- ls -alR
68
71
69
72
- name : Create Release
70
73
id : create_release
71
74
uses : softprops/action-gh-release@v1
72
75
env :
73
76
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
74
77
with :
75
- files : TestCoverage-${{ github.ref }}.xml
78
+ files : TestCoverage-${{ steps.tag.outputs.tag }}.xml
76
79
tag_name : ${{ github.ref }}
77
- name : Release ${{ github.ref }}
80
+ name : ${{ steps.tag.outputs.tag }}
78
81
body : |
79
82
Automated release created by [action-gh-release](https://github.com/softprops/action-gh-release).
80
83
draft : false
You can’t perform that action at this time.
0 commit comments