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

Commit

Permalink
Remove usual ci
Browse files Browse the repository at this point in the history
  • Loading branch information
ClementWalter committed Jun 12, 2024
1 parent d8d2b42 commit 0fd262b
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 272 deletions.
265 changes: 0 additions & 265 deletions .github/workflows/ci.yml

This file was deleted.

23 changes: 16 additions & 7 deletions .github/workflows/update-rpc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,12 @@ name: Update Submodule

on: [pull_request]

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
Expand All @@ -23,17 +21,28 @@ 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: |
ls -la
cd kakarot-rpc
git config --global user.email "[email protected]"
git config --global user.name "GitHub Actions"
cd kakarot-rpc/lib/kakarot
git remote show origin
git status
git fetch --tags
git submodule update --recursive --init
cd 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 -
gh pr create -B main -H kakarot-$release_tag --title 'Update Kakarot to $release_tag' --body 'Update Kakarot to $release_tag'

0 comments on commit 0fd262b

Please sign in to comment.