build: test action #1
Workflow file for this run
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: 'example-push' | |
on: pull_request | |
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: package-a changed in last commit? | |
id: changedAction | |
uses: Trampoline-CX/action-turbo-changed@v1 | |
with: | |
workspace: package-a | |
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 'package-a changed!' |