forked from ethereum/execution-spec-tests
-
Notifications
You must be signed in to change notification settings - Fork 0
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
d0b6fa0
commit 9bf19f7
Showing
1 changed file
with
8 additions
and
15 deletions.
There are no files selected for viewing
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 |
---|---|---|
|
@@ -15,33 +15,26 @@ jobs: | |
with: | ||
fetch-depth: 0 | ||
|
||
- name: Configure Git | ||
- name: Configure git | ||
run: | | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "GitHub Action" | ||
- name: Create New Branch and Update version in setup.cfg | ||
- name: Set environment variables | ||
run: | | ||
echo "NEW_VERSION=${{ github.event.release.tag_name }}" >> $GITHUB_ENV | ||
echo "NEW_BRANCH=release-${{ github.event.release.tag_name }}" >> $GITHUB_ENV | ||
- name: Create new branch and update version in setup.cfg | ||
run: | | ||
NEW_VERSION="${{ github.event.release.tag_name }}" # Assuming the 'v' prefix is included | ||
NEW_BRANCH="release-${NEW_VERSION}" | ||
echo "Creating new branch: $NEW_BRANCH" | ||
git checkout -b $NEW_BRANCH | ||
# Update the version in setup.cfg | ||
sed -i "s/^version = .*/version = $NEW_VERSION/" setup.cfg | ||
git add setup.cfg | ||
git commit -m "feat(docs|fw): release EEST $NEW_VERSION" | ||
git push --set-upstream origin $NEW_BRANCH | ||
- name: Check changes after sed command | ||
run: | | ||
git diff | ||
- name: List differences between new branch and main | ||
run: | | ||
git fetch origin main:main | ||
git diff main...$NEW_BRANCH | ||
- name: Create Pull Request | ||
- name: Create pull request | ||
uses: peter-evans/create-pull-request@v4 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
|