File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,8 @@ name: Build Layered Standard Network Communication
33on :
44 push :
55 branches-ignore : [ 'temp/*' ]
6+ tags :
7+ - ' *'
68 pull_request :
79 branches : [ main ]
810
@@ -15,12 +17,20 @@ jobs:
1517 steps :
1618 - name : checkout
1719 uses : actions/checkout@v3
20+ - name : Generate revnumber
21+ run : |
22+ [[ $GITHUB_REF_TYPE == "tag" ]] && REVNUMBER=${GITHUB_REF:11} || REVNUMBER=${GITHUB_SHA:0:7}
23+ echo GITHUB_SHA: $GITHUB_SHA
24+ echo GITHUB_REF_TYPE: $GITHUB_REF_TYPE
25+ echo GITHUB_REF: $GITHUB_REF
26+ echo REVNUMBER: $REVNUMBER
27+ echo "REVNUMBER=$REVNUMBER" >> $GITHUB_ENV
1828 - name : prepare
1929 run : mkdir build
2030 - name : build layered standard Network Communication
2131 uses : avattathil/asciidoctor-action@master
2232 with :
23- program : " asciidoctor -D build --backend=html5 --attribute=revnumber=${GITHUB_REF#refs/heads/}-$GITHUB_SHA --attribute=revdate=$(date +%F) docs/index.adoc"
33+ program : " asciidoctor -D build --backend=html5 --attribute=revnumber=${{ env.REVNUMBER }} --attribute=revdate=$(date +%F) docs/index.adoc"
2434 - name : copy images and examples
2535 run : tar cfC - docs images examples | tar xfC - build
2636 - name : archive layered standard Network Communication
You can’t perform that action at this time.
0 commit comments