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

feat: Add commitMessage option #75

Merged
merged 2 commits into from
Jan 6, 2020
Merged

Conversation

peaceiris
Copy link
Owner

@peaceiris peaceiris commented Jan 6, 2020

Close #74
cf. #72 and #73

TODO

  • Update README

peaceiris added a commit to peaceiris/hugo-test-project that referenced this pull request Jan 6, 2020
peaceiris added a commit to peaceiris/test-hugo-external-repo that referenced this pull request Jan 6, 2020
peaceiris added a commit to peaceiris/hugo-test-project that referenced this pull request Jan 6, 2020
@peaceiris
Copy link
Owner Author

@fabiosangregorio Please try the following.

- name: Deploy
  uses: peaceiris/actions-gh-pages@v2.9.0-0
  env:
    ...
  with:
    commitMessage: ${{ github.event.commits[0].message }}

Copy link

@fabiosangregorio fabiosangregorio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is perfect! I tested it out and it works as expected. Thank you so much.

@peaceiris peaceiris merged commit 76351d5 into master Jan 6, 2020
@peaceiris peaceiris deleted the feat-custom-commit-message branch January 6, 2020 14:46
@peaceiris
Copy link
Owner Author

v2.9.0 has been released and the v2 tag updated. We can use the commitMessage option with the v2 tag.

- name: Deploy
  uses: peaceiris/actions-gh-pages@v2
  env:
    ...
  with:
    commitMessage: ${{ github.event.commits[0].message }}

@peaceiris
Copy link
Owner Author

peaceiris commented Jan 6, 2020

I found head_commit, it is better.

commitMessage: ${{ github.event.head_commit.message }}

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

Successfully merging this pull request may close these issues.

proposal: Custom commit message option
2 participants