chore: update peter-evans/create-or-update-comment digest to 6f2ce0e #824
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: COMMENT_DEVELOP_FIX | |
on: | |
pull_request: | |
types: | |
- opened | |
branches: | |
- develop | |
permissions: | |
pull-requests: write | |
jobs: | |
comment-on-fix-to-develop: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check for fix commits | |
env: | |
COMMITS_URL: ${{ github.event.pull_request.commits_url }} | |
run: | | |
echo "Checking commits via $COMMITS_URL" | |
if [[ $(curl $COMMITS_URL) =~ ."\"message\": \"fix".* ]] | |
then | |
echo "FIX_COMMITS_PRESENT=true" >> $GITHUB_ENV | |
else | |
echo "FIX_COMMITS_PRESENT=false" >> $GITHUB_ENV | |
fi | |
- name: Create comment | |
if: ${{ env.FIX_COMMITS_PRESENT == 'true' }} | |
uses: peter-evans/create-or-update-comment@d5aa8cd1ea450824d5ae23e44f55efc071b98b44 | |
with: | |
issue-number: ${{ github.event.number }} | |
body: | | |
This Pull Request targets `develop` branch, but contains `fix` commits. | |
Consider targeting `main` instead. |