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:
Anas Nashif 2024-11-20 07:56:07 -05:00
commit c1b8cd7db1

View file

@ -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}