This repository has been archived by the owner on Jan 9, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 325
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
1 parent
d8d2b42
commit 3a118c7
Showing
2 changed files
with
15 additions
and
274 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -4,16 +4,17 @@ name: Update Submodule | |
# release: | ||
# types: [published] | ||
|
||
on: [pull_request] | ||
on: | ||
push: | ||
branches: | ||
- cw/release-to-rpc | ||
|
||
permissions: | ||
contents: read | ||
pull-requests: write | ||
permissions: read-all | ||
|
||
jobs: | ||
update-submodule: | ||
runs-on: ubuntu-latest | ||
|
||
permissions: write-all | ||
steps: | ||
- name: Checkout Kakarot-RPC Repository | ||
uses: actions/checkout@v4 | ||
|
@@ -23,17 +24,22 @@ jobs: | |
path: kakarot-rpc | ||
|
||
- name: Update Submodule | ||
env: | ||
# GH_TOKEN is a secret defined in the github repository settings and not the default GITHUB_TOKEN | ||
GH_TOKEN: ${{ secrets.GH_TOKEN }} | ||
run: | | ||
cd kakarot-rpc | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "GitHub Actions" | ||
cd kakarot-rpc/lib/kakarot | ||
echo "Current directory: $(pwd)" | ||
git submodule update --recursive --init | ||
cd lib/kakarot | ||
git fetch --tags | ||
export release_tag=$(git tag --sort=-creatordate | head -n 1) | ||
git checkout $release_tag | ||
cd ../.. | ||
git checkout -b kakarot-$release_tag | ||
git add lib/kakarot | ||
git status | ||
git commit -m "Update kakarot to $release_tag" | ||
gh pr create -B main -H kakarot-$release_tag --title 'Update Kakarot to $release_tag' | ||
cd - | ||
git diff origin/main | ||
gh pr create -B main -H kakarot-$release_tag --title 'Update Kakarot to $release_tag' --body 'Update Kakarot to $release_tag' |