Skip to content

Commit

Permalink
chore: replace peter-evans/create-pull-request with the inline usage …
Browse files Browse the repository at this point in the history
…of github cli
  • Loading branch information
esolitos authored Aug 20, 2024
1 parent b1a67ab commit 31de1a2
Showing 1 changed file with 15 additions and 12 deletions.
27 changes: 15 additions & 12 deletions .github/workflows/vespacli.yml
Original file line number Diff line number Diff line change
Expand Up @@ -125,17 +125,20 @@ jobs:
- name: Update latest version
run: |
python utils/update_version.py --version ${{ needs.check-and-update.outputs.version }}
- name: Create Pull Request
uses: peter-evans/create-pull-request@v6
with:
token: ${{ secrets.GITHUB_TOKEN }}
commit-message: "Update Vespa CLI version to ${{ needs.check-and-update.outputs.version }}"
title: "Update Vespa CLI version to ${{ needs.check-and-update.outputs.version }}"
body: "This PR updates the Vespa CLI version to ${{ needs.check-and-update.outputs.version }}"
branch: "update-vespa-cli-version-${{ needs.check-and-update.outputs.version }}"
base: "master"
labels: "vespacli"
- name: Commit and PR
if: github.event_name == 'release'
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NEW_BRANCH: "update-vespa-cli-version-${{ needs.check-and-update.outputs.version }}"
run: |
git checkout -b "${NEW_BRANCH}"
git commit -a -m "Update Vespa CLI version to ${{ needs.check-and-update.outputs.version }}"
git push --set-upstream origin "${NEW_BRANCH}"
gh pr create -B master -H "${NEW_BRANCH}" \
-t "Update Vespa CLI version to ${{ needs.check-and-update.outputs.version }}" \
-b ":robot: This PR updates the Vespa CLI version to ${{ needs.check-and-update.outputs.version }}" \
-l "vespacli"
release:
needs: create-pr
Expand Down Expand Up @@ -176,4 +179,4 @@ jobs:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN_VESPACLI }}
run: |
python -m twine upload dist/*
python -m twine upload dist/*

0 comments on commit 31de1a2

Please sign in to comment.