Release Browser #5
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
id: get_latest_release | |
run: echo "::set-output name=LATEST_RELEASE::$(gh release list --repo voqal/browser-dev --limit 1 --json tagName --jq '.[0].tagName')" | |
env: | |
GITHUB_TOKEN: ${{ secrets.PRIVATE_REPO_TOKEN }} | |
- name: Fetch Latest Release Asset | |
run: gh release download --repo voqal/browser-dev ${{ steps.get_latest_release.outputs.LATEST_RELEASE }} | |
env: | |
GITHUB_TOKEN: ${{ secrets.PRIVATE_REPO_TOKEN }} | |
- name: See what we downloaded | |
run: ls | |
- name: Inspect content | |
run: cat hello.txt |