Skip to content

Commit

Permalink
Update python-ci.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
abhijeet-plato authored Oct 16, 2023
1 parent 22ef596 commit 481168c
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/python-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
sudo apt update
sudo apt install gh
- name: Bump version and create a pull request
id: bump_version
id: bump_version_step
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
Expand All @@ -45,6 +45,7 @@ jobs:
echo "NEW_VERSION=$NEW_VERSION" >> $GITHUB_ENV
echo "NEW_VERSION=$NEW_VERSION" # To make sure it's set correctly
echo "::set-output name=version::$NEW_VERSION"
git checkout -b bump-version-$NEW_VERSION
echo $NEW_VERSION > VERSION
Expand All @@ -57,8 +58,8 @@ jobs:
# Create a pull request using GitHub CLI
gh pr create --base main --head bump-version-$NEW_VERSION --title "Bump version to $NEW_VERSION" --body "Automatic version bump to $NEW_VERSION"

- name: Debug NEW_VERSION
run: echo "New Version is $NEW_VERSION"
- name: Debug Output Variable
run: echo "Output variable should be ${{ steps.bump_version.outputs.version }}"

create_release:
needs: bump_version
Expand Down

0 comments on commit 481168c

Please sign in to comment.