forked from asyncapi/website
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding checkout to ensure git env execution
- Loading branch information
Showing
1 changed file
with
5 additions
and
2 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 |
---|---|---|
|
@@ -10,15 +10,18 @@ jobs: | |
Notify-triagers: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Check PR Changes | ||
id: pr-changes | ||
run: | | ||
md_files=$(git diff --name-only ${{ github.event.before }} ${{ github.sha }} | grep '\.md$' || true) | ||
md_files=$(git diff --name-only ${{ github.event.before }} ${{ github.sha }} -- '*.md' || true) | ||
echo "::set-output name=md_changes::${md_files}" | ||
- name: Create Comment | ||
if: steps.pr-changes.outputs.md_changes != '' | ||
uses: mshick/[email protected] | ||
with: | ||
message: "This is a test comment to check workflow for changes to Markdown files." | ||
repo-token: ${{ secrets.GH_TOKEN }} | ||
repo-token: ${{ secrets.GH_TOKEN }} |