|
@@ -23,15 +23,25 @@ jobs:
|
|
permissions:
|
|
permissions:
|
|
contents: read # to fetch code (actions/checkout)
|
|
contents: read # to fetch code (actions/checkout)
|
|
steps:
|
|
steps:
|
|
|
|
+ - name: Check out scripts folder to the runner
|
|
|
|
+ uses: actions/checkout@v4
|
|
|
|
+ with:
|
|
|
|
+ ref: master
|
|
|
|
+ path: actions
|
|
|
|
+ sparse-checkout: |
|
|
|
|
+ .github/scripts/check-cmake-format.sh
|
|
|
|
+ sparse-checkout-cone-mode: false
|
|
- name: Check out the repository to the runner
|
|
- name: Check out the repository to the runner
|
|
uses: actions/checkout@v4
|
|
uses: actions/checkout@v4
|
|
with:
|
|
with:
|
|
|
|
+ path: source
|
|
ref: ${{ github.event.pull_request.head.sha }}
|
|
ref: ${{ github.event.pull_request.head.sha }}
|
|
- uses: awalsh128/[email protected]
|
|
- uses: awalsh128/[email protected]
|
|
with:
|
|
with:
|
|
packages: cmake-format
|
|
packages: cmake-format
|
|
- name: Run scripts/check-cmake-format.sh
|
|
- name: Run scripts/check-cmake-format.sh
|
|
- run: ./.github/scripts/check-cmake-format.sh
|
|
|
|
|
|
+ run: ${{ github.workspace }}/actions/.github/scripts/check-cmake-format.sh
|
|
|
|
+ working-directory: ${{ github.workspace }}/source
|
|
env:
|
|
env:
|
|
ref: ${{ github.event.pull_request.head.sha }}
|
|
ref: ${{ github.event.pull_request.head.sha }}
|
|
FETCH_DEPTH: 50
|
|
FETCH_DEPTH: 50
|
|
@@ -40,12 +50,22 @@ jobs:
|
|
permissions:
|
|
permissions:
|
|
contents: read # to fetch code (actions/checkout)
|
|
contents: read # to fetch code (actions/checkout)
|
|
steps:
|
|
steps:
|
|
|
|
+ - name: Check out scripts folder to the runner
|
|
|
|
+ uses: actions/checkout@v4
|
|
|
|
+ with:
|
|
|
|
+ ref: master
|
|
|
|
+ path: actions
|
|
|
|
+ sparse-checkout: |
|
|
|
|
+ .github/scripts/check-commit.sh
|
|
|
|
+ sparse-checkout-cone-mode: false
|
|
- name: Check out the repository to the runner
|
|
- name: Check out the repository to the runner
|
|
uses: actions/checkout@v4
|
|
uses: actions/checkout@v4
|
|
with:
|
|
with:
|
|
|
|
+ path: source
|
|
ref: ${{ github.event.pull_request.head.sha }}
|
|
ref: ${{ github.event.pull_request.head.sha }}
|
|
- name: Run scripts/check-commit.sh
|
|
- name: Run scripts/check-commit.sh
|
|
- run: ./.github/scripts/check-commit.sh
|
|
|
|
|
|
+ run: ${{ github.workspace }}/actions/.github/scripts/check-commit.sh
|
|
|
|
+ working-directory: ${{ github.workspace }}/source
|
|
env:
|
|
env:
|
|
ref: ${{ github.event.pull_request.head.sha }}
|
|
ref: ${{ github.event.pull_request.head.sha }}
|
|
FETCH_DEPTH: 50
|
|
FETCH_DEPTH: 50
|