-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #888 from aws/dev
Sync dev and main
- Loading branch information
Showing
3 changed files
with
94 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: Change File Included in PR | ||
|
||
on: | ||
pull_request: | ||
types: [opened, synchronize, reopened, labeled] | ||
|
||
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@v3 | ||
|
||
- name: Get List of Changed Files | ||
id: changed-files | ||
uses: tj-actions/changed-files@4edd678ac3f81e2dc578756871e4d00c19191daf #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-dotnet-deploy/blob/main/CONTRIBUTING.md" | ||
exit 1 | ||
fi |
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
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