diff --git a/.github/workflows/Version_Check.yml b/.github/workflows/Version_Check.yml index 148d47b7c6c7..67d7725ec248 100644 --- a/.github/workflows/Version_Check.yml +++ b/.github/workflows/Version_Check.yml @@ -27,3 +27,14 @@ jobs: 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: + # Find-like wildcard to find files\directories. + wildcard: ".github/workflows/*.yml" + # Type of find command. Supported values: f (file), d (directory), l (link), p (pipe), s (socket). + # Exit code for non-empty find result. + exit_code_found: 1 + # Exit code for empty find result. + exit_code_not_found: 0