-
-
Notifications
You must be signed in to change notification settings - Fork 1
37 lines (26 loc) · 917 Bytes
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: Download Release
# Controls when the workflow will run
on:
workflow_dispatch:
jobs:
get_asset:
runs-on: ubuntu-latest
steps:
- name: List Releases
run: gh release list --repo voqal/browser-dev
env:
GITHUB_TOKEN: ${{ secrets.PRIVATE_REPO_TOKEN }}
- name: Fetch Latest Release Tag
run: |
LATEST_RELEASE=$(gh release list --repo voqal/browser-dev --limit 1 --json tagName --jq '.[0].tagName')
echo "LATEST_RELEASE=$LATEST_RELEASE" >> $GITHUB_ENV
env:
GITHUB_TOKEN: ${{ secrets.PRIVATE_REPO_TOKEN }}
- name: Fetch Latest Release Asset
run: gh release download --repo voqal/browser-dev ${{ env.LATEST_RELEASE }}
env:
GITHUB_TOKEN: ${{ secrets.PRIVATE_REPO_TOKEN }}
- name: See what we downloaded
run: ls
- name: Inspect content
run: cat hello.txt