mirror of
https://github.com/RetroDECK/Vita3K-bin.git
synced 2025-01-19 12:45:38 +00:00
Using github env
This commit is contained in:
parent
c30ec10b5e
commit
2e1ff71e26
16
.github/workflows/fetch-release.yml
vendored
16
.github/workflows/fetch-release.yml
vendored
|
@ -25,16 +25,16 @@ jobs:
|
||||||
id: fetch_release
|
id: fetch_release
|
||||||
run: |
|
run: |
|
||||||
latest_release=$(curl -s https://api.github.com/repos/Vita3K/Vita3K/releases/latest)
|
latest_release=$(curl -s https://api.github.com/repos/Vita3K/Vita3K/releases/latest)
|
||||||
echo "::set-output name=tag_name::$(echo $latest_release | jq -r .tag_name)"
|
echo "tag_name=$(echo $latest_release | jq -r .tag_name)" >> $GITHUB_ENV
|
||||||
echo "::set-output name=release_body::$(echo $latest_release | jq -r .body)"
|
echo "release_body=$(echo $latest_release | jq -r .body)" >> $GITHUB_ENV
|
||||||
echo "::set-output name=assets::$(echo $latest_release | jq -r '.assets[] | .browser_download_url')"
|
echo "assets=$(echo $latest_release | jq -r '.assets[] | .browser_download_url')" >> $GITHUB_ENV
|
||||||
release_name=$(echo $latest_release | jq -r .body | grep -oP 'Vita3K Build: \d+')
|
release_name=$(echo $latest_release | jq -r .body | grep -oP 'Vita3K Build: \d+')
|
||||||
echo "::set-output name=release_name::$release_name"
|
echo "release_name=$release_name" >> $GITHUB_ENV
|
||||||
|
|
||||||
- name: Download assets
|
- name: Download assets
|
||||||
run: |
|
run: |
|
||||||
mkdir -p artifacts
|
mkdir -p artifacts
|
||||||
for url in ${{ steps.fetch_release.outputs.assets }}; do
|
for url in ${{ env.assets }}; do
|
||||||
wget -P artifacts $url
|
wget -P artifacts $url
|
||||||
done
|
done
|
||||||
|
|
||||||
|
@ -44,9 +44,9 @@ jobs:
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
with:
|
with:
|
||||||
tag_name: ${{ github.event.inputs.tag_name || format('YYYYMMDD-HHmmss', github.event.inputs['time']) }}
|
tag_name: ${{ env.tag_name || format('YYYYMMDD-HHmmss', github.event.inputs['time']) }}
|
||||||
release_name: ${{ steps.fetch_release.outputs.release_name }}
|
release_name: ${{ env.release_name }}
|
||||||
body: ${{ steps.fetch_release.outputs.release_body }}
|
body: ${{ env.release_body }}
|
||||||
draft: false
|
draft: false
|
||||||
prerelease: false
|
prerelease: false
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue