Merge pull request #245 from McFly98/patch-1 #29
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build Vehicle Profiles | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- 'vehicle_profiles/**' | |
- '.vehicle_profiles/**' | |
- '.github/workflows/vehicle_profiles.yml' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
repository: ${{ github.event.pull_request.head.repo.full_name }} | |
ref: ${{ github.event.pull_request.head.ref }} | |
- name: Setup Node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '20.x' | |
- run: | | |
cd .vehicle_profiles | |
npm ci | |
npm run build | |
cd - | |
- name: Commit | |
uses: EndBug/add-and-commit@v9 | |
with: | |
add: 'vehicle_profiles.json' | |
author_name: Jay Oswald | |
author_email: [email protected] | |