Skip to content

chore(deps): bump the all-github-actions group with 5 updates #132

chore(deps): bump the all-github-actions group with 5 updates

chore(deps): bump the all-github-actions group with 5 updates #132

name: Change File Included in PR
on:
pull_request:
types: [opened, synchronize, reopened, labeled]
permissions:
contents: read
jobs:
check-files-in-directory:
if: ${{ !contains(github.event.pull_request.labels.*.name, 'Release Not Needed') && !contains(github.event.pull_request.labels.*.name, 'Release PR') }}
name: Change File Included in PR
runs-on: ubuntu-latest
steps:
- name: Checkout PR code
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 #v6.0.1
- name: Get List of Changed Files
id: changed-files
uses: tj-actions/changed-files@e0021407031f5be11a464abee9a0776171c79891 #v45
- name: Check for Change File(s) in .autover/changes/
run: |
DIRECTORY=".autover/changes/"
if echo "${{ steps.changed-files.outputs.all_changed_files }}" | grep -q "$DIRECTORY"; then
echo "✅ One or more change files in '$DIRECTORY' are included in this PR."
else
echo "❌ No change files in '$DIRECTORY' are included in this PR."
echo "Refer to the 'Adding a change file to your contribution branch' section of https://github.com/aws/aws-logging-dotnet/blob/master/CONTRIBUTING.md"
exit 1
fi