output info about changed #26
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" | |
on: | |
pull_request: | |
push: | |
branches: | |
- master | |
- "feature/*" | |
jobs: | |
test: | |
name: "Test and Run" | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest, windows-latest] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: NPM Install | |
run: npm ci | |
- name: Test | |
run: npm test | |
- name: Package | |
run: npm run package | |
- name: Run Action | |
uses: ./ | |
- name: Run Action from Opened PR | |
if: github.event_name == 'pull_request' && github.event.pull_request.merged_by == '' | |
uses: ./ | |
with: | |
major_pattern: "/^(breaking|major)//" | |
minor_pattern: "/^(feature|feat|minor)//" | |
use_test_value: "true" | |
test_value: ${{ github.event.pull_request.head.ref }} | |
id: run |