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

Doesn't work with PR massages #254

Open
alonapester opened this issue Oct 30, 2024 · 0 comments
Open

Doesn't work with PR massages #254

alonapester opened this issue Oct 30, 2024 · 0 comments

Comments

@alonapester
Copy link

Hello,
I am trying to create a workflow that will bump version every time I close a PR and merge it to master, the problem is that it doesn't fine my commit (I am using squash commit for the merge if that matters).
I does tag but It won't use any of my massages:

My workflow:

name: Bump version

on:
  pull_request:
    branches:
      - master
    types:
      - closed

jobs:
  bump-app-version:
    runs-on: ubuntu-latest
    if: github.event.pull_request.merged == true
    permissions:
      contents: write
    env:
      github.event.head_commit.message: ${{ github.event.pull_request.title }}
    steps:
    - uses: actions/checkout@v4
      with:
        token: ${{ secrets.PAT }}
        fetch-depth: '0'

      
    - name:  'Automated Version Bump'
      uses:  'phips28/gh-action-bump-version@master'
      env:
        GITHUB_TOKEN: ${{ secrets.PAT }}
      with:
        major-wording:  '#major'
        minor-wording:  '#minor'
        patch-wording:  '#patch'
        target-branch: master
        tag-prefix:  'v'
        commit-message: 'CI: bumps version to {{version}}'

The logs:

Couldn't find any commits in this event, incrementing patch version...
tagPrefix: v
tagSuffix: 
commit messages: []

I would love to get some help with this.

Thank you,
Alon

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