-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5884384
commit ced0e10
Showing
6 changed files
with
58 additions
and
30 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,37 @@ | ||
name: "Use AlgoKit" | ||
|
||
description: "Checks if the dependencies have been cached with the hash of the package-lock.json file." | ||
|
||
inputs: | ||
algokit_version: | ||
description: "The version of AlgoKit to install" | ||
required: false | ||
default: "latest" | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
- name: "🔑 Set up cache key" | ||
id: cache-key | ||
run: echo "CACHE_KEY=algokit-${{ inputs.algokit_version }}-$(python --version | cut -d' ' -f2)" >> $GITHUB_ENV | ||
- name: "💾 Cache dependencies" | ||
id: algokit-cache | ||
uses: actions/cache@v3 | ||
with: | ||
path: ~/.cache/pip | ||
key: ${{ env.CACHE_KEY }} | ||
restore-keys: | | ||
${{ runner.os }}-algokit-${{ inputs.algokit_version }} | ||
${{ runner.os }}-algokit- | ||
${{ runner.os }}- | ||
- name: "🔧 Setup" | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.12' | ||
- name: "📤 Upgrade pip" | ||
run: python -m pip install --upgrade pip | ||
shell: bash | ||
- name: "📦 Install" | ||
if: steps.algokit-cache.outputs.cache-hit != 'true' | ||
run: pip install algokit==${{ inputs.algokit_version }} | ||
shell: bash |
4 changes: 2 additions & 2 deletions
4
.github/actions/use-dependencies/action.yml → ...b/actions/use-npm-dependencies/action.yml
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
This file was deleted.
Oops, something went wrong.