-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add
latest
tag for inputs.version (#10)
- Loading branch information
1 parent
9bbeb96
commit bf23b5b
Showing
2 changed files
with
10 additions
and
1 deletion.
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
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 |
---|---|---|
|
@@ -26,13 +26,22 @@ runs: | |
fi | ||
shell: bash | ||
|
||
- name: Download release if latest | ||
uses: robinraju/[email protected] | ||
with: | ||
repository: typst/typst | ||
latest: true | ||
fileName: ${{ format('typst-x86_64-{0}.{1}', env.typst_asset_name, env.typst_asset_zip_name) }} | ||
token: ${{ inputs.token }} | ||
if: inputs.version == 'latest' | ||
- name: Download release | ||
uses: robinraju/[email protected] | ||
with: | ||
repository: typst/typst | ||
tag: ${{ inputs.version }} | ||
fileName: ${{ format('typst-x86_64-{0}.{1}', env.typst_asset_name, env.typst_asset_zip_name) }} | ||
token: ${{ inputs.token }} | ||
if: inputs.version != 'latest' | ||
|
||
- name: Unzip Typst (Linux, macOS) | ||
run: | | ||
|