Skip to content

Commit

Permalink
Update UpdateGearDependency.yml (#488)
Browse files Browse the repository at this point in the history
  • Loading branch information
MedovTimur authored Oct 10, 2024
1 parent 0cb4621 commit 2050adf
Show file tree
Hide file tree
Showing 2 changed files with 8,951 additions and 7 deletions.
15 changes: 8 additions & 7 deletions .github/workflows/UpdateGearDependency.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,6 @@ jobs:
python -m pip install --upgrade pip
pip install requests packaging gitpython
- name: Remove Cargo.lock file
run: |
echo "Removing contracts/Cargo.lock"
rm -f ../contracts/Cargo.lock
- name: Check for new tag and update Cargo.toml
env:
GITHUB_TOKEN: ${{ secrets.WF_SECRET }}
Expand All @@ -61,11 +56,17 @@ jobs:
echo "Creating a new branch: $branch_name"
git checkout -b $branch_name
# Remove and update Cargo.lock file
echo "Removing contracts/Cargo.lock"
rm -f ../contracts/Cargo.lock
echo "Updating contracts/Cargo.lock"
cd ../contracts && cargo generate-lockfile
# Stage and commit changes
echo "Staging changed files."
git add ../contracts/Cargo.toml
git add Cargo.toml
git add ../.github/workflows/contracts-tests.yml
git add ../contracts/Cargo.lock
git add Cargo.lock
echo "Committing changes with message: 'Update GEAR dependencies to latest tag in contracts'"
git commit -m "Update GEAR dependencies to latest tag in contracts"
Expand Down
Loading

0 comments on commit 2050adf

Please sign in to comment.