-
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
Jon Bray
committed
Jul 28, 2024
1 parent
1534f95
commit c7007bf
Showing
1 changed file
with
7 additions
and
7 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 |
---|---|---|
|
@@ -29,25 +29,25 @@ jobs: | |
CHANGED=$(git diff --name-only HEAD~1 HEAD | grep -c '^abi/' || true) | ||
echo "Number of changes in abi/: $CHANGED" | ||
if [ "$CHANGED" -gt 0 ]; then | ||
echo "::set-output name=changed::1" | ||
echo "changed=1" >> $GITHUB_ENV | ||
else | ||
echo "::set-output name=changed::0" | ||
echo "changed=0" >> $GITHUB_ENV | ||
fi | ||
- name: Sync ABI to xeon-dapp | ||
if: steps.check_changes.outputs.changed == '1' | ||
if: env.changed == '1' | ||
run: | | ||
git clone [email protected]:xeon-protocol/xeon-dapp.git xeon-dapp | ||
cd xeon-dapp | ||
git checkout -B ci/abi-sync || git checkout --orphan ci/abi-sync | ||
rsync -a ../v1-core/abi/ src/abi/ | ||
- name: Check ABI File Naming | ||
if: steps.check_changes.outputs.changed == '1' | ||
if: env.changed == '1' | ||
uses: ./.github/actions/check-abi-naming | ||
|
||
- name: Commit and push changes | ||
if: steps.check_changes.outputs.changed == '1' | ||
if: env.changed == '1' | ||
run: | | ||
cd xeon-dapp | ||
git add src/abi/ | ||
|
@@ -61,15 +61,15 @@ jobs: | |
fi | ||
- name: List changed files | ||
if: steps.check_changes.outputs.changed == '1' | ||
if: env.changed == '1' | ||
id: changes | ||
run: | | ||
cd xeon-dapp | ||
CHANGED_FILES=$(git diff --name-only HEAD~1 HEAD) | ||
echo "CHANGED_FILES=$CHANGED_FILES" >> $GITHUB_ENV | ||
- name: Create Pull Request | ||
if: steps.check_changes.outputs.changed == '1' | ||
if: env.changed == '1' | ||
uses: peter-evans/create-pull-request@v5 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
|