ci: twister_prep: do not double check for event
We already do the check for the job. Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
parent
5b51632103
commit
c1b8cd7db1
1 changed files with 0 additions and 4 deletions
4
.github/workflows/twister-prep.yaml
vendored
4
.github/workflows/twister-prep.yaml
vendored
|
@ -50,14 +50,12 @@ jobs:
|
||||||
echo "ZEPHYR_RUNNER_CLOUD_POD = ${ZEPHYR_RUNNER_CLOUD_POD}"
|
echo "ZEPHYR_RUNNER_CLOUD_POD = ${ZEPHYR_RUNNER_CLOUD_POD}"
|
||||||
|
|
||||||
- name: Clone cached Zephyr repository
|
- name: Clone cached Zephyr repository
|
||||||
if: github.event_name == 'pull_request_target'
|
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
run: |
|
run: |
|
||||||
git clone --shared /repo-cache/zephyrproject/zephyr .
|
git clone --shared /repo-cache/zephyrproject/zephyr .
|
||||||
git remote set-url origin ${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}
|
git remote set-url origin ${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}
|
||||||
|
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
if: github.event_name == 'pull_request_target'
|
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
ref: ${{ github.event.pull_request.head.sha }}
|
ref: ${{ github.event.pull_request.head.sha }}
|
||||||
|
@ -65,7 +63,6 @@ jobs:
|
||||||
persist-credentials: false
|
persist-credentials: false
|
||||||
|
|
||||||
- name: Environment Setup
|
- name: Environment Setup
|
||||||
if: github.event_name == 'pull_request_target'
|
|
||||||
run: |
|
run: |
|
||||||
git config --global user.email "bot@zephyrproject.org"
|
git config --global user.email "bot@zephyrproject.org"
|
||||||
git config --global user.name "Zephyr Bot"
|
git config --global user.name "Zephyr Bot"
|
||||||
|
@ -82,7 +79,6 @@ jobs:
|
||||||
echo "ZEPHYR_SDK_INSTALL_DIR=/opt/toolchains/zephyr-sdk-$( cat SDK_VERSION )" >> $GITHUB_ENV
|
echo "ZEPHYR_SDK_INSTALL_DIR=/opt/toolchains/zephyr-sdk-$( cat SDK_VERSION )" >> $GITHUB_ENV
|
||||||
|
|
||||||
- name: Generate Test Plan with Twister
|
- name: Generate Test Plan with Twister
|
||||||
if: github.event_name == 'pull_request_target'
|
|
||||||
id: test-plan
|
id: test-plan
|
||||||
run: |
|
run: |
|
||||||
export ZEPHYR_BASE=${PWD}
|
export ZEPHYR_BASE=${PWD}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue