-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Co-authored-by: Anahide Tchertchian <[email protected]>
- Loading branch information
1 parent
868d05d
commit cfde6d3
Showing
5 changed files
with
45 additions
and
2 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,25 @@ | ||
name: "Github Download File" | ||
description: "Download a file from another repository" | ||
inputs: | ||
token: | ||
description: "GitHub Access Token" | ||
required: true | ||
repository: | ||
description: "The owner and repository name from which the file should be downloaded. For example, octocat/Hello-World." | ||
required: true | ||
file-path: | ||
description: "Path to the file you want to download" | ||
required: true | ||
target: | ||
description: "Where and with what name to save the file" | ||
required: true | ||
runs: | ||
using: "composite" | ||
steps: | ||
- name: "Download file" | ||
shell: bash | ||
env: | ||
GITHUB_TOKEN: ${{ inputs.token }} | ||
run: | | ||
export API_URL=https://api.github.com/repos/${{ inputs.repository }}/contents/${{ inputs.file-path }} | ||
gh api $API_URL -H "Accept: application/vnd.github.raw" >> ${{ inputs.target }} |
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
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
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
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 |
---|---|---|
@@ -1 +1 @@ | ||
v5.5.0 | ||
v5.6.0 |