We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ca8a8b8 commit ee9862aCopy full SHA for ee9862a
.github/workflows/pages.yml
@@ -24,16 +24,16 @@ jobs:
24
restore-keys: |
25
${{ runner.os }}-node-
26
- name: Get Tag
27
+ uses: actions/github-script@v3
28
id: tag
- - uses: actions/github-script@v3
29
- with:
30
- github-token: ${{secrets.GITHUB_TOKEN}}
31
- result-encoding: string
32
- script: |
33
- const ref = process.env.GITHUB_REF
34
- if(!ref.startsWith('refs/tags/'))
35
- return ''
36
- return ref.replace(/^refs\/tags\//, '')
+ with:
+ github-token: ${{secrets.GITHUB_TOKEN}}
+ result-encoding: string
+ script: |
+ const ref = process.env.GITHUB_REF
+ if(!ref.startsWith('refs/tags/'))
+ return ''
+ return ref.replace(/^refs\/tags\//, '')
37
- name: Generate Docs
38
run: |
39
echo $SOURCE_TAG
0 commit comments