Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion .github/actions/changelog-check/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,19 @@ runs:
fi
shell: bash

- name: Get latest PR data
id: get_pr
uses: octokit/request-action@v2.x
with:
route: GET /repos/${{ github.repository }}/issues/${{ inputs.pr_number }}
env:
GITHUB_TOKEN: ${{ github.token }}

- name: Check if 'skip changelog' label is present
id: check_labels
run: |
SKIP_CHANGELOG_LABEL="${{ contains(github.event.pull_request.labels.*.name, 'skip changelog') }}"
echo "PR labels: ${{ toJSON(fromJSON(steps.get_pr.outputs.data).labels.*.name) }}"
SKIP_CHANGELOG_LABEL="${{ contains(fromJSON(steps.get_pr.outputs.data).labels.*.name, 'skip changelog') }}"
if [ "$SKIP_CHANGELOG_LABEL" = "true" ]; then
echo "Skip changelog label is present. Skipping changelog check."
echo "SKIP_CHANGELOG_CHECK=true" >> $GITHUB_ENV
Expand Down
Loading