-
-
Notifications
You must be signed in to change notification settings - Fork 77
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Like in the Scribble, DrRacket, and Typed Racket repositories, this pull request sets up a weekly Resyntax Autofixer run that generates a pull request cleaning up files in this repository.
- Loading branch information
Showing
1 changed file
with
36 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,36 @@ | ||
name: Resyntax Autofixer | ||
|
||
on: | ||
workflow_dispatch: | ||
schedule: | ||
- cron: "0 0 * * 2" | ||
|
||
jobs: | ||
autofix: | ||
runs-on: ubuntu-latest | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
permissions: | ||
pull-requests: write | ||
contents: write | ||
steps: | ||
- name: Checkout code | ||
uses: actions/[email protected] | ||
- uses: Bogdanp/[email protected] | ||
with: | ||
architecture: 'x64' | ||
distribution: 'minimal' | ||
version: 'current' | ||
- name: Install and setup | ||
run: | | ||
raco pkg install --auto compiler-lib | ||
racket -l- pkg/dirs-catalog --link --check-metadata pkgs-catalog . | ||
echo file://`pwd`/pkgs-catalog/ > catalog-config.txt | ||
raco pkg config catalogs >> catalog-config.txt | ||
raco pkg config --set catalogs `cat catalog-config.txt` | ||
raco pkg install -i --auto --no-setup gui-lib/ gui-doc/ gui/ tex-table/ gui-test/ | ||
raco setup --pkgs gui gui-lib gui-test tex-table | ||
- name: Create a Resyntax pull request | ||
uses: jackfirth/[email protected] | ||
with: | ||
private-key: ${{ secrets.RESYNTAX_APP_PRIVATE_KEY }} |