Skip to content
This repository has been archived by the owner on Jan 9, 2025. It is now read-only.

Add workflow to PR kakarot RPC on release #18

Add workflow to PR kakarot RPC on release

Add workflow to PR kakarot RPC on release #18

Workflow file for this run

name: Update Submodule
# on:
# release:
# types: [published]
on: [pull_request]
permissions:
contents: read
pull-requests: write
jobs:
update-submodule:
runs-on: ubuntu-latest
steps:
- name: Checkout Kakarot-RPC Repository
uses: actions/checkout@v4
with:
repository: kkrt-labs/kakarot-rpc
token: ${{ secrets.GITHUB_TOKEN }}
path: kakarot-rpc
- name: Update Submodule
run: |
ls -la
cd kakarot-rpc
git config --global user.email "[email protected]"
git config --global user.name "GitHub Actions"
git remote show origin
git status
git fetch --tags
cd kakarot-rpc/lib/kakarot
ls -la
echo "Current directory: $(pwd)"
git remote show origin
git status
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 commit -m "Update kakarot to $release_tag"
gh pr create -B main -H kakarot-$release_tag --title 'Update Kakarot to $release_tag'
cd -