Skip to content

Commit

Permalink
chore: add github action to cont. delivery the TextMate grammar
Browse files Browse the repository at this point in the history
  • Loading branch information
piotr-semenov committed Apr 15, 2024
1 parent 995318c commit c70a288
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/flake.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
---
name: "Build"

on:
push:
branches: [ main ]
paths-ignore: [ "*.md" ]
pull_request:
branches: [ main ]

jobs:
build:
runs-on: macos-10.15
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

- name: Auto-commit changes
uses: stefanzweifel/[email protected]
with:
commit_message: Automated Change
branch: main
commit_options: '--no-verify --signoff'
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"

0 comments on commit c70a288

Please sign in to comment.