Skip to content

Commit

Permalink
ci: update to env variables
Browse files Browse the repository at this point in the history
  • Loading branch information
Jon Bray committed Jul 28, 2024
1 parent 1534f95 commit c7007bf
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/sync-abi-to-dapp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/
Expand All @@ -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 }}
Expand Down

0 comments on commit c7007bf

Please sign in to comment.