Skip to content

Commit

Permalink
rename REMOTE -> SUBMODULE_REMOTE
Browse files Browse the repository at this point in the history
Co-authored-by: Ernesto García <[email protected]>
  • Loading branch information
frangio and ernestognw authored Sep 30, 2023
1 parent 17f7ce3 commit 1e9398d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/upgradeable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,5 @@ jobs:
- name: Transpile to upgradeable
run: bash scripts/upgradeable/transpile-onto.sh ${{ github.ref_name }} origin/${{ github.ref_name }}
env:
REMOTE: https://github.com/${{ github.repository }}.git
SUBMODULE_REMOTE: https://github.com/${{ github.repository }}.git
- run: git push origin ${{ github.ref_name }}
4 changes: 2 additions & 2 deletions scripts/upgradeable/transpile-onto.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@ if git diff --quiet --cached; then
exit
fi

if [[ -v REMOTE ]]; then
if [[ -v SUBMODULE_REMOTE ]]; then
lib=lib/openzeppelin-contracts
git submodule add -b "${base#origin/}" "$REMOTE" "$lib"
git submodule add -b "${base#origin/}" "$SUBMODULE_REMOTE" "$lib"
git -C "$lib" checkout "$commit"
git add "$lib"
fi
Expand Down

0 comments on commit 1e9398d

Please sign in to comment.