-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (44 loc) · 1.39 KB
/
flake.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
---
name: "Build"
on:
push:
branches: [ main ]
paths-ignore: [ "*.md" ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: macos-12
steps:
- uses: actions/checkout@v3
- name: Cache Vagrant boxes
uses: actions/[email protected]
with:
path: ~/.vagrant.d/boxes
key: $${{ runner.os }}-vagrant-${{ hashFiles('Vagrantfile') }}
restore-keys: |
${{ runner.os }}-vagrant-
- name: Show Vagrant version
run: vagrant --version
- name: Run vagrant up & provision
run: vagrant up --provision
env:
VER: 23.11
- name: Import GPG key
uses: crazy-max/[email protected]
with:
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
passphrase: ${{ secrets.PASSPHRASE }}
- name: Auto-commit changes
id: auto-commit-action
uses: stefanzweifel/[email protected]
with:
commit_message: auto-commit of artifacts
branch: main
commit_options: '--no-verify --signoff'
file_pattern: 'syntaxes/*'
commit_user_name: publishing-bot
commit_user_email: [email protected]
- name: Run if changes have been detected
if: steps.auto-commit-action.outputs.changes_detected == 'true'
run: echo "New TextMate grammar was published"