EmulatorJS/.github/workflows/main.yml

47 lines
1.3 KiB
YAML
Raw Normal View History

2022-08-31 23:51:20 +00:00
name: Minify Code
on: [push, pull_request, workflow_dispatch]
jobs:
paths-filter:
runs-on: ubuntu-latest
outputs:
output1: ${{ steps.filter.outputs.data }}
steps:
- uses: actions/checkout@v2
- uses: dorny/paths-filter@v2
id: filter
with:
filters: |
data:
- 'data/**'
# run only if 'data' files were changed
- name: workflow tests
if: steps.filter.outputs.data == 'true'
run: echo "Data file"
# run only if not 'data' files were changed
- name: not workflow tests
if: steps.filter.outputs.data != 'true'
run: echo "NOT Data file"
next-job:
runs-on: ubuntu-latest
# Wait from the paths-filter to be completed before starting next-job
2022-09-14 22:25:27 +00:00
#needs: paths-filter
#if: needs.paths-filter.outputs.output1 == 'true'
2022-08-31 23:51:20 +00:00
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '12'
2022-09-14 19:07:27 +00:00
- run: cd data/minify && npm install && npm run build
2022-09-14 22:36:10 +00:00
- uses: EndBug/add-and-commit@v9
2022-08-31 23:51:20 +00:00
with:
2022-09-14 19:07:27 +00:00
author_name: Ethan O'Brien
2022-09-14 22:19:17 +00:00
author_email: emulatorjs.ethanaobrien@gmail.com
2022-09-14 19:07:27 +00:00
committer_name: Ethan O'Brien
2022-09-14 22:19:17 +00:00
committer_email: emulatorjs.ethanaobrien@gmail.com
2022-09-14 19:07:27 +00:00
default_author: user_info
message: 'Minify files'