Skip to content

Commit

Permalink
Add Resyntax Autofixer workflow
Browse files Browse the repository at this point in the history
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
jackfirth authored and mflatt committed Oct 27, 2024
1 parent c59e8f6 commit 7b077bc
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/resyntax-autofixer.yml
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 }}

0 comments on commit 7b077bc

Please sign in to comment.