forked from publicsuffix/list
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
bb1a127
commit 3afd1dd
Showing
1 changed file
with
33 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,33 @@ | ||
name: fmt-pr | ||
|
||
on: | ||
pull_request: | ||
|
||
permissions: | ||
pull-requests: write | ||
|
||
jobs: | ||
validate: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-go@v5 | ||
with: | ||
go-version: "stable" | ||
- name: run validations | ||
id: fmt | ||
run: | | ||
cd tools | ||
if go run ./psltool fmt -d ../public_suffix_list.dat; then | ||
echo 'msg="Nothing to format."' >> "$GITHUB_OUTPUT" | ||
else | ||
echo 'msg="Formatting needs to be fixed."' >> "$GITHUB_OUTPUT" | ||
fi | ||
- name: Comment PR | ||
uses: thollander/actions-comment-pull-request@v2 | ||
with: | ||
message: | | ||
"Hello, world! :wave:" | ||
"${{ steps.fmt.outputs.msg }}" | ||