mirror of
https://github.com/ChrisTitusTech/linutil.git
synced 2024-11-05 13:15:21 +00:00
fix: binary download, invalid action inputs
This commit is contained in:
parent
5878f4dbf0
commit
27a00ca506
8
.github/workflows/preview.yml
vendored
8
.github/workflows/preview.yml
vendored
|
@ -34,15 +34,14 @@ jobs:
|
||||||
repo: context.repo.repo,
|
repo: context.repo.repo,
|
||||||
per_page: 1
|
per_page: 1
|
||||||
});
|
});
|
||||||
core.setOutput('result', releases.data[0].tag_name);
|
return releases.data[0].tag_name;
|
||||||
result-encoding: string
|
|
||||||
|
|
||||||
- name: Set tag name ( Workflow Run )
|
- 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
|
run: echo "tag_name=${{ steps.latest_tag.outputs.result }}" >> $GITHUB_ENV
|
||||||
|
|
||||||
- name: Set tag name ( Workflow Dispatch )
|
- name: Set tag name ( Workflow Dispatch )
|
||||||
if: ${{ github.event_name }} == 'workflow_dispatch'
|
if: github.event_name == 'workflow_dispatch'
|
||||||
run: echo "tag_name=${{ github.event.inputs.tag_name }}" >> $GITHUB_ENV
|
run: echo "tag_name=${{ github.event.inputs.tag_name }}" >> $GITHUB_ENV
|
||||||
|
|
||||||
- name: Download binary
|
- name: Download binary
|
||||||
|
@ -68,11 +67,10 @@ jobs:
|
||||||
uses: peter-evans/create-pull-request@v7.0.5
|
uses: peter-evans/create-pull-request@v7.0.5
|
||||||
with:
|
with:
|
||||||
commit-message: Preview for ${{ env.tag_name }}
|
commit-message: Preview for ${{ env.tag_name }}
|
||||||
file-pattern: "docs/assets/preview.gif"
|
|
||||||
add-options: "--force"
|
|
||||||
token: ${{ secrets.PAT_TOKEN }}
|
token: ${{ secrets.PAT_TOKEN }}
|
||||||
branch: feature/preview-${{ env.tag_name }}
|
branch: feature/preview-${{ env.tag_name }}
|
||||||
title: "Update preview for ${{ env.tag_name }}"
|
title: "Update preview for ${{ env.tag_name }}"
|
||||||
body: |
|
body: |
|
||||||
Automated PR to update preview gif for version ${{ env.tag_name }}
|
Automated PR to update preview gif for version ${{ env.tag_name }}
|
||||||
|
![preview](https://raw.githubusercontent.com/${{ github.repository }}/feature/preview-${{ env.tag_name }}/docs/assets/preview.gif)
|
||||||
if: success()
|
if: success()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user