File tree Expand file tree Collapse file tree 2 files changed +31
-1
lines changed
Expand file tree Collapse file tree 2 files changed +31
-1
lines changed Original file line number Diff line number Diff line change 1+ name : Extract Project from Tag
2+
3+ on :
4+ push :
5+ tags :
6+ - " *@*.*.*"
7+ workflow_dispatch :
8+
9+ jobs :
10+ extract-project :
11+ runs-on : ubuntu-latest
12+ steps :
13+ - name : Extract Project Name
14+ id : extract
15+ run : |
16+ TAG_NAME=${{ github.ref_name }}
17+ PROJECT_NAME=$(echo "$TAG_NAME" | sed -E 's/@[0-9]+\.[0-9]+\.[0-9]+(-[a-zA-Z0-9.]+)?//')
18+ echo "project=$PROJECT_NAME" >> "$GITHUB_ENV"
19+ echo "::set-output name=project::$PROJECT_NAME"
20+
21+ - name : Show Extracted Project
22+ run : |
23+ echo "Extracted project: ${{ env.project }}"
24+
25+ use-project :
26+ runs-on : ubuntu-latest
27+ needs : extract-project
28+ steps :
29+ - name : Use Extracted Project Name
30+ run : echo "Project from tag is ${{ needs.extract-project.outputs.project }}"
Original file line number Diff line number Diff line change 9797 "generatorOptions" : {
9898 "fallbackCurrentVersionResolver" : " disk"
9999 },
100- "preVersionCommand" : " yarn nx run-many -t build" ,
100+ "preVersionCommand" : " yarn nx run-many -t build"
101101 },
102102 "changelog" : {
103103 "projectChangelogs" : true ,
You can’t perform that action at this time.
0 commit comments