Skip to content

Commit ee9862a

Browse files
committed
lint yml
1 parent ca8a8b8 commit ee9862a

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

.github/workflows/pages.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -24,16 +24,16 @@ jobs:
2424
restore-keys: |
2525
${{ runner.os }}-node-
2626
- name: Get Tag
27+
uses: actions/github-script@v3
2728
id: tag
28-
- 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\//, '')
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\//, '')
3737
- name: Generate Docs
3838
run: |
3939
echo $SOURCE_TAG

0 commit comments

Comments
 (0)