-
Notifications
You must be signed in to change notification settings - Fork 24
57 lines (50 loc) · 1.31 KB
/
format.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
name: Formatter
on: workflow_dispatch
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
Formatter:
runs-on: ubuntu-24.04
steps:
- name: Checkout
uses: actions/checkout@main
- name: Setup Haxe
uses: krdlab/setup-haxe@master
with:
haxe-version: 4.3.6
- name: Installing Libraries
run: |
haxelib install formatter --quiet
- name: Formatting
run: haxelib run formatter -s ./source
- name: Upload Artifact
uses: actions/upload-artifact@main
with:
name: formattedSource
path: |
source
!**/.gitignore
hxformat.json
if-no-files-found: error
Publisher:
needs: Formatter
runs-on: ubuntu-24.04
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@main
with:
ref: ${{ github.head_ref }}
- name: Delete source
run: rm -rf source
- name: Download artifact
uses: actions/download-artifact@main
with:
path: .
name: formattedSource
- name: Push to GitHub
uses: stefanzweifel/git-auto-commit-action@master
with:
commit_message: "Formatted the source files."