-
-
Notifications
You must be signed in to change notification settings - Fork 972
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Automatically dedupe blocklist on push to main (#17808)
* create action to auto dedupe * intentionally add dupe * temporarily allowlist branch * actions: auto-cleanup config * remove temporary allowlist --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: x86 NOP <[email protected]>
- Loading branch information
1 parent
547aaa9
commit 9dbd0f9
Showing
3 changed files
with
47 additions
and
10 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,32 @@ | ||
name: Auto Cleanup | ||
|
||
permissions: | ||
contents: write | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
cleanup: | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 1 | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: 20.x | ||
cache: 'yarn' | ||
- run: yarn --frozen-lockfile | ||
- run: | | ||
MM_OUTPUT_PATH=config.json yarn clean:blocklist || true | ||
if [[ `git status --porcelain` ]]; then | ||
git config user.name "github-actions[bot]" | ||
git config user.email "41898282+github-actions[bot]@users.noreply.github.com" | ||
git add . | ||
git commit -m 'actions: auto-cleanup config' | ||
git push | ||
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