Skip to content

Commit

Permalink
Merge pull request #8155 from Agoric/mfig-endo-branch-cache
Browse files Browse the repository at this point in the history
ci(restore-node): avoid clobbering `#endo-branch:` setup
  • Loading branch information
michaelfig authored and mhofman committed Jan 11, 2024
2 parents b6a3b61 + 42756b0 commit 767c4f6
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions .github/actions/restore-node/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,13 @@ runs:
shell: bash
- uses: actions/checkout@v3
with:
clean: 'false'
clean: false
submodules: 'true'
persist-credentials: false
path: ${{ inputs.path }}
# Select a branch on Endo to test against by adding text to the body of the
# pull request. For example: #endo-branch: some-pr-branch
# The default is '*NONE*' to indicate not to check out Endo, just use
# The default is '*NOPE*' to indicate not to check out Endo, just use
# the published NPM packages.
- name: Get the appropriate Endo branch
id: endo-branch
Expand Down Expand Up @@ -115,8 +115,8 @@ runs:
mkdir -p node_modules/.cache/agoric
date > node_modules/.cache/agoric/yarn-installed
if test -e ~/endo; then
# Remove traces of the redirected `yarn install`.
git restore package.json yarn.lock
# Stage the redirected `yarn install` consequences.
git add package.json yarn.lock
rm -rf ~/endo
fi
shell: bash
Expand All @@ -135,9 +135,11 @@ runs:
- name: git dirty check
working-directory: ${{ inputs.path }}
run: |-
if [ -n "$(git status --porcelain)" ];
then
set -x
# In case of Endo override, ignore staged changes.
if [ -n "$(git status --porcelain | grep -Eve '^A '; true)" ]; then
git status
echo "Unexpected dirty git status" 1>&2
exit 1
fi
shell: bash

0 comments on commit 767c4f6

Please sign in to comment.