[pull] main from KelvinTegelaar:main #6
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: 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/[email protected] | |
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/[email protected] | |
with: | |
wildcard: '.github/workflows/*.yml' | |
exit_code_found: 1 | |
exit_code_not_found: 0 |