-
Notifications
You must be signed in to change notification settings - Fork 709
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[WIP] moving
Find FAIL-CI
check to GHA
- Loading branch information
1 parent
069f8a6
commit c11efdb
Showing
2 changed files
with
31 additions
and
20 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,31 @@ | ||
name: Check for FAIL-CI | ||
|
||
on: | ||
pull_request: | ||
types: [ opened, synchronize, reopened, ready_for_review, labeled ] | ||
|
||
jobs: | ||
check-fail-ci: | ||
runs-on: ubuntu-latest | ||
container: | ||
image: "paritytech/tools:latest" | ||
# paritytech/tools uses "nonroot" user by default, which doesn't have enough | ||
# permissions to create GHA context | ||
options: --user root | ||
steps: | ||
- name: Fetch latest code | ||
uses: actions/checkout@v4 | ||
- name: Check | ||
run: | | ||
set +e | ||
rg --line-number --hidden --type rust --glob '!{.git,target}' "$ASSERT_REGEX" .; exit_status=$? | ||
if [ $exit_status -eq 0 ]; then | ||
echo "$ASSERT_REGEX was found, exiting with 1"; | ||
exit 1; | ||
else | ||
echo "No $ASSERT_REGEX was found, exiting with 0"; | ||
exit 0; | ||
fi | ||
env: | ||
ASSERT_REGEX: "FAIL-CI" | ||
GIT_DEPTH: 1 |
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