mirror of
https://github.com/ChrisTitusTech/linutil.git
synced 2024-11-21 21:09:42 +00:00
fix tag output
This commit is contained in:
parent
6f21718963
commit
00d321d75e
6
.github/workflows/preview.yml
vendored
6
.github/workflows/preview.yml
vendored
|
@ -26,7 +26,7 @@ jobs:
|
|||
- name: Get tag name ( Workflow Run )
|
||||
id: latest_tag
|
||||
uses: actions/github-script@v7
|
||||
if: ${{ github.event_name }} == 'workflow_run'
|
||||
if: github.event_name == 'workflow_run'
|
||||
with:
|
||||
script: |
|
||||
const releases = await github.rest.repos.listReleases({
|
||||
|
@ -34,11 +34,11 @@ jobs:
|
|||
repo: context.repo.repo,
|
||||
per_page: 1
|
||||
});
|
||||
return releases.data[0].tag_name;
|
||||
core.setOutput('result', releases.data[0].tag_name);
|
||||
result-encoding: string
|
||||
|
||||
- name: Set tag name ( Workflow Run )
|
||||
if: ${{ github.event_name }} == 'workflow_run'
|
||||
if: github.event_name == 'workflow_run'
|
||||
run: echo "tag_name=${{ steps.latest_tag.outputs.result }}" >> $GITHUB_ENV
|
||||
|
||||
- name: Set tag name ( Workflow Dispatch )
|
||||
|
|
Loading…
Reference in New Issue
Block a user