-
-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into add-cla-workflow
- Loading branch information
Showing
20 changed files
with
515 additions
and
28 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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,8 +34,35 @@ jobs: | |
!contains(github.event.commits[0].message, '[skip links]') | ||
&& github.event.pull_request.draft == false | ||
steps: | ||
- name: Get branch names 🌿 | ||
id: branch-name | ||
uses: tj-actions/branch-names@v7 | ||
|
||
- name: Checkout repo (PR) 🛎 | ||
uses: actions/checkout@v4 | ||
if: github.event_name == 'pull_request' | ||
with: | ||
ref: ${{ steps.branch-name.outputs.head_ref_branch }} | ||
repository: ${{ github.event.pull_request.head.repo.full_name }} | ||
|
||
- name: Checkout repo 🛎 | ||
uses: actions/checkout@v4 | ||
if: github.event_name != 'pull_request' | ||
with: | ||
ref: ${{ steps.branch-name.outputs.head_ref_branch }} | ||
|
||
- name: Check commit message 💬 | ||
run: | | ||
git config --global --add safe.directory $(pwd) | ||
export head_commit_message="$(git show -s --format=%B | tr '\r\n' ' ' | tr '\n' ' ')" | ||
echo "head_commit_message = $head_commit_message" | ||
if [[ $head_commit_message == *"$SKIP_INSTRUCTION"* ]]; then | ||
echo "Skip instruction detected - cancelling the workflow." | ||
exit 1 | ||
fi | ||
shell: bash | ||
env: | ||
SKIP_INSTRUCTION: "[skip links]" | ||
|
||
- name: Check URLs in docs 🔬 | ||
uses: lycheeverse/[email protected] | ||
|
Oops, something went wrong.