Skip to content

Commit

Permalink
update.
Browse files Browse the repository at this point in the history
  • Loading branch information
spencer-tb committed Feb 17, 2024
1 parent d0b6fa0 commit 9bf19f7
Showing 1 changed file with 8 additions and 15 deletions.
23 changes: 8 additions & 15 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down

0 comments on commit 9bf19f7

Please sign in to comment.