Skip to content

Commit

Permalink
add 42-download-release-private-repo.md workflow
Browse files Browse the repository at this point in the history
Signed-off-by: GuillaumeFalourd <[email protected]>
  • Loading branch information
GuillaumeFalourd committed Jan 5, 2022
1 parent 46aff42 commit 754393e
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/42-download-release-private-repo.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: 42 - Download Release Private Repo

# Controls when the workflow will run
on: [push, workflow_dispatch]

jobs:
get-asset:
runs-on: ubuntu-latest
steps:
- name: List Releases
run: gh release list --repo GuillaumeFalourd/formulas-training # private repo
env:
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }}

- name: Check asset
run: gh release view 2.13.3 --repo GuillaumeFalourd/formulas-training
env:
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }}

- name: Fetch latest asset
run: gh release download 2.13.3 --repo GuillaumeFalourd/formulas-training
env:
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }}

- name: See what we downloaded
run: ls

- name: Inspect content
run: cat README.md

0 comments on commit 754393e

Please sign in to comment.