Skip to content

Updated Actions to only occur on certain branches #2

Updated Actions to only occur on certain branches

Updated Actions to only occur on certain branches #2

Workflow file for this run

name: 'Version Bump'
on:
pull_request:
branches:
- master
jobs:
version-check:

Check failure on line 10 in .github/workflows/version-bump.yml

View workflow run for this annotation

GitHub Actions / Version Bump

Invalid workflow file

The workflow is not valid. .github/workflows/version-bump.yml (Line: 10, Col: 3): The workflow must contain at least one job with no dependencies.
needs: build
runs-on: ubuntu-latest
steps:
- name: Check if version has been updated
if:
id: check-version-changed
uses: EndBug/version-check@v2
with:
diff-search: true
- name: Log when changed
if: steps.check-version-changed.outputs.changed == 'true'
run: |
echo "Version change found in commit ${{ steps.check.outputs.commit }}! New version: ${{ steps.check.outputs.version }} (${{ steps.check.outputs.type }})"
- name: Log when unchanged
if: steps.check-version-changed.outputs.changed == 'false'
run: |
echo "No version change. Please update the package version in package.json"
exit 1