Skip to content

Commit

Permalink
ci(restore-node): bust the Yarn cache for Endo changes
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelfig committed Jan 6, 2024
1 parent 8b57193 commit 7456ba3
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions .github/actions/restore-node/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,13 +72,17 @@ runs:
- name: Move Endo checkout outside the working directory
id: endo-sha
run: |-
set -e
set -ex
if test -e ./replacement-endo; then
mv ./replacement-endo ~/endo
echo "sha=$(cd ~/endo && git rev-parse HEAD)" >> $GITHUB_OUTPUT
sha=$(cd ~/endo && git rev-parse HEAD)
else
echo "sha=NOPE" >> $GITHUB_OUTPUT
sha=NOPE
fi
echo "sha=$sha" >> $GITHUB_OUTPUT
cd "${{ inputs.path }}"
echo "$sha" > endo-sha.txt
git add endo-sha.txt
shell: bash
- name: merge endo integration branch
id: endo-integration-merge
Expand All @@ -99,7 +103,9 @@ runs:
with:
node-version: ${{ inputs.node-version }}
cache: yarn
cache-dependency-path: ${{ inputs.path }}/yarn.lock
cache-dependency-path: |
${{ inputs.path }}/yarn.lock
${{ inputs.path }}/endo-sha.txt
- uses: kenchan0130/actions-system-info@master
id: system-info
- name: restore built files
Expand Down

0 comments on commit 7456ba3

Please sign in to comment.