Skip to content

Check for Version Update #16

Check for Version Update

Check for Version Update #16

---
name: Check for Version Update
on:
pull_request:
branches: [master, main]
workflow_dispatch:
jobs:
build:
if: github.repository_owner == 'KelvinTegelaar'
name: 'Check for Version Update'
runs-on: ubuntu-latest
steps:
- name: Check for Changed Files
uses: brettcannon/check-for-changed-files@v1.1.0
with:
file-pattern: version_latest.txt
failure-message: 'You have not updated version_latest.txt. This is a required file to update at each PR. Please sync your latest changes and update the version number.'
- name: Prevent changes to workflow files
uses: DovnarAlexander/github-action-file-detection@v0.3.0
with:
wildcard: '.github/workflows/*.yml'
exit_code_found: 1
exit_code_not_found: 0