From 7b077bc61f82d350904ecb05e89c253b8e65cf7b Mon Sep 17 00:00:00 2001 From: Jacqueline Firth Date: Wed, 9 Oct 2024 22:45:54 -0700 Subject: [PATCH] Add Resyntax Autofixer workflow 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. --- .github/workflows/resyntax-autofixer.yml | 36 ++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/resyntax-autofixer.yml diff --git a/.github/workflows/resyntax-autofixer.yml b/.github/workflows/resyntax-autofixer.yml new file mode 100644 index 000000000..363350b3d --- /dev/null +++ b/.github/workflows/resyntax-autofixer.yml @@ -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/checkout@v3.6.0 + - uses: Bogdanp/setup-racket@v1.10 + 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/create-resyntax-pull-request@v0.4.1 + with: + private-key: ${{ secrets.RESYNTAX_APP_PRIVATE_KEY }}