Skip to content

Commit 7b077bc

Browse files
jackfirthmflatt
authored andcommitted
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.
1 parent c59e8f6 commit 7b077bc

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed
+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Resyntax Autofixer
2+
3+
on:
4+
workflow_dispatch:
5+
schedule:
6+
- cron: "0 0 * * 2"
7+
8+
jobs:
9+
autofix:
10+
runs-on: ubuntu-latest
11+
env:
12+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
13+
permissions:
14+
pull-requests: write
15+
contents: write
16+
steps:
17+
- name: Checkout code
18+
uses: actions/[email protected]
19+
- uses: Bogdanp/[email protected]
20+
with:
21+
architecture: 'x64'
22+
distribution: 'minimal'
23+
version: 'current'
24+
- name: Install and setup
25+
run: |
26+
raco pkg install --auto compiler-lib
27+
racket -l- pkg/dirs-catalog --link --check-metadata pkgs-catalog .
28+
echo file://`pwd`/pkgs-catalog/ > catalog-config.txt
29+
raco pkg config catalogs >> catalog-config.txt
30+
raco pkg config --set catalogs `cat catalog-config.txt`
31+
raco pkg install -i --auto --no-setup gui-lib/ gui-doc/ gui/ tex-table/ gui-test/
32+
raco setup --pkgs gui gui-lib gui-test tex-table
33+
- name: Create a Resyntax pull request
34+
uses: jackfirth/[email protected]
35+
with:
36+
private-key: ${{ secrets.RESYNTAX_APP_PRIVATE_KEY }}

0 commit comments

Comments
 (0)