We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b94a876 commit 3cc96d7Copy full SHA for 3cc96d7
.github/workflows/documentation.yml
@@ -82,12 +82,19 @@ jobs:
82
token: ${{ secrets.DJS_DOCS }}
83
path: 'out'
84
85
+ - uses: frabert/[email protected]
86
+ id: SHORT_BRANCH_NAME
87
+ with:
88
+ pattern: '(^@\w+\/\w+@v?)?(?<semver>\d+.\d+.\d+)-?.*'
89
+ string: ${{ BRANCH_NAME }}
90
+ replace-with: '$<semver>'
91
+
92
- name: Move docs to correct directory
93
env:
94
PACKAGE: ${{ matrix.package }}
95
run: |
96
mkdir -p out/${PACKAGE}
- mv docs/${PACKAGE}/docs/docs.json out/${PACKAGE}/${BRANCH_NAME}.json
97
+ mv docs/${PACKAGE}/docs/docs.json out/${PACKAGE}/${{ steps.SHORT_BRANCH_NAME.outputs.replaced }}.json
98
99
- name: Commit and push
100
0 commit comments