-
Notifications
You must be signed in to change notification settings - Fork 102
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add 42-download-release-private-repo.md workflow
Signed-off-by: GuillaumeFalourd <[email protected]>
- Loading branch information
1 parent
46aff42
commit 754393e
Showing
1 changed file
with
29 additions
and
0 deletions.
There are no files selected for viewing
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
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 |