Skip to content

Commit

Permalink
feat: test commit
Browse files Browse the repository at this point in the history
  • Loading branch information
huniafatima-arbi committed Jul 8, 2024
1 parent ab6af2d commit b3ee578
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/version-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,18 @@ jobs:
- name: Get latest tag
uses: actions-ecosystem/action-get-latest-tag@v1
id: get-latest-tag
- name: Get commits comment
id: get_commits
run: |
PR_NUMBER=${{ github.event.pull_request.number }}
COMMITS=$(curl -s -H "Accept: application/vnd.github.v3+json" \
-H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
"https://api.github.com/repos/${{ github.repository }}/pulls/$PR_NUMBER/commits")
COMBINED_MESSAGES=$(echo "$COMMITS" | jq -r '.[].commit.message' | paste -sd ' ')
echo "COMBINED_MESSAGES=$COMBINED_MESSAGES" >> $GITHUB_OUTPUT
- name: Print combined commit messages
id: print_commit
run: echo ${{ steps.get_commits.outputs.COMBINED_MESSAGES }}
- name: Script to comment on PR
uses: actions/github-script@v6
with:
Expand Down

0 comments on commit b3ee578

Please sign in to comment.