Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Commit message not updated when PR is updated #2460

Closed
M1kep opened this issue Oct 19, 2023 · 1 comment
Closed

Commit message not updated when PR is updated #2460

M1kep opened this issue Oct 19, 2023 · 1 comment

Comments

@M1kep
Copy link

M1kep commented Oct 19, 2023

Subject of the issue

It seems whenever a an existing PR/Branch is updated via the create-pull-request action the commit message and PR title is not updated.

Steps to reproduce

I'm using a workflow with these two steps:

      - name: Update Version
        id: update_version
        env:
          GRAPHQL_API_TOKEN: ${{ secrets.SOME_SECRET }}
          GRAPHQL_API_ENDPOINT: "<SOME_ENDPOINT>"
        run: ./ci-scripts/update_version.sh

      - name: Create Pull Request
        uses: peter-evans/create-pull-request@v5
        with:
          commit-message: "[auto] Update version to ${{ steps.update_version.outputs.LATEST_VERSION }}"
          title: "Update version to ${{ steps.update_version.outputs.LATEST_VERSION }}"
          body: "Automated version bump."

This results in a PR with force pushes whenever there's a new change, but leaves PR title and more importantly the commit message as the original message. In the photo you can see the force pushes, but the latest version has actually moved to 7.145 which is not reflected in the messages.
CleanShot 2023-10-19 at 14 19 38

@M1kep
Copy link
Author

M1kep commented Oct 19, 2023

Nevermind, helps if I return the correct version :)

@M1kep M1kep closed this as completed Oct 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant