-
Notifications
You must be signed in to change notification settings - Fork 1
23 lines (20 loc) · 803 Bytes
/
Copy pathweb.yaml
File metadata and controls
23 lines (20 loc) · 803 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
name: 'Web-changed'
on: push
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0 # Necessary so we have commit history to compare to
- name: web changed in last commit?
id: changedAction
uses: Trampoline-CX/action-turbo-changed@v1
with:
workspace: web
from: HEAD^1 # Check for changes since previous commit (feel free to put a branch name instead in the form of origin/<branchName>)
# Do something more meaningful here, like push to NPM, do heavy computing, etc.
- name: Validate Action Output
if: steps.changedAction.outputs.changed == 'true' # Check output if it changed or not (returns a boolean)
run: echo 'web changed!'