diff --git a/.github/workflows/web-check_version.yml b/.github/workflows/web-check_version.yml index 4aa6acd6f7..21e85d82fc 100644 --- a/.github/workflows/web-check_version.yml +++ b/.github/workflows/web-check_version.yml @@ -3,8 +3,6 @@ name: Check version #on: push on: [create, pull_request] -permissions: read-all - # github.head_ref is only defined on pull_request events concurrency: group: ${{ github.workflow }}-${{ github.actor }}-${{ github.head_ref || github.run_id }} @@ -13,6 +11,9 @@ concurrency: jobs: Check_package_version: runs-on: ubuntu-latest + + permissions: read-all + if: (! contains(github.event.pull_request.body, '[X] does not change any runtime related code or build configuration')) steps: