Feature/migrate to ps v2.8.1 #89
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: 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 |