Skip to content

Feature/migrate to ps v2.8.1 #88

Feature/migrate to ps v2.8.1

Feature/migrate to ps v2.8.1 #88

Workflow file for this run

name: PR Workflow
on:
pull_request:
jobs:
test:
name: Test
runs-on: ubuntu-latest
# if source branch is main, there will already be jobs from
# the "push" workflow associated with this PR, so nothing needs to be re-run
if: github.head_ref != 'main'
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/test
licensebot:
name: Licensebot Check
runs-on: ubuntu-latest
# if source branch is main, there will already be jobs from
# the "push" workflow associated with this PR, so nothing needs to be re-run
if: github.head_ref != 'main'
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/license-check
build:
name: Compile
runs-on: ubuntu-latest
# if source branch is main, there will already be jobs from
# the "push" workflow associated with this PR, so nothing needs to be re-run
if: github.head_ref != 'main'
needs: ['test', 'licensebot']
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/build
checkversion:
name: Check Version was updated
runs-on: ubuntu-latest
if: github.head_ref != 'main'
steps:
- name: Check if version file was updated
id: changed-files-yaml
uses: tj-actions/changed-files@v44
with:
files_yaml: |
version:
- version.txt
- name: Run step if test file(s) change
if: steps.changed-files-yaml.outputs.version_any_changed == 'false'
run: |
echo "Did not update version.txt"
exit 1