File tree Expand file tree Collapse file tree 2 files changed +20
-2
lines changed Expand file tree Collapse file tree 2 files changed +20
-2
lines changed Original file line number Diff line number Diff line change 7
7
- ' [1-9]+.[0-9]+.[0-9]+'
8
8
9
9
jobs :
10
+ get_tag :
11
+ name : Get tag name
12
+ outputs :
13
+ tag : ${{ steps.get_tag.outputs.tag }}
14
+ runs-on : ubuntu-latest
15
+ steps :
16
+ - name : Checkout master branch
17
+ uses : actions/checkout@v2
18
+ - name : Get the tag name
19
+ id : get_tag
20
+ env :
21
+ OPENGROK_REF : ${{ github.ref }}
22
+ run : ./dev/ref2tag.sh
10
23
build :
11
24
runs-on : ubuntu-latest
25
+ needs : get_tag
12
26
steps :
13
27
- name : Checkout master branch
14
28
uses : actions/checkout@v2
35
49
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
36
50
with :
37
51
tag_name : ${{ github.ref }}
38
- release_name : Release ${{ github.ref }}
52
+ release_name : ${{ github.ref }}
39
53
draft : false
40
54
prerelease : false
41
55
- name : Upload release tarball
45
59
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
46
60
with :
47
61
upload_url : ${{ steps.create_release.outputs.upload_url }}
48
- asset_path : ./distribution/target/opengrok-${{ github.ref }}.tar.gz
62
+ asset_path : ./distribution/target/opengrok-${{ needs.get_tag.outputs.tag }}.tar.gz
49
63
asset_name : opengrok-${{ github.ref }}.tar.gz
50
64
asset_content_type : application/octet-stream
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ tag=${OPENGROK_REF# " refs/tags/" }
4
+ echo " ::set-output name=tag::$tag "
You can’t perform that action at this time.
0 commit comments