From fd1bb5617abe114441e8181922dc3a90ad4c606a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Janne=20Kiiskil=C3=A4?= Date: Mon, 7 Oct 2024 09:25:43 +0300 Subject: [PATCH] PR-checker - remove git redirect, use actions/checkout We use the git redirect to clone scripts-internal. We should not, the git redirect is left behind and that might mess up the next job if we're using self-hosted runners. --- .github/workflows/pr-checker.yml | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/.github/workflows/pr-checker.yml b/.github/workflows/pr-checker.yml index 2dd3432..ee490e5 100644 --- a/.github/workflows/pr-checker.yml +++ b/.github/workflows/pr-checker.yml @@ -44,15 +44,14 @@ jobs: PA_TOKEN: ${{ secrets.ACCESS_TOKEN }} # IzumaBOT Access Token steps: - uses: actions/checkout@v4 + - uses: actions/checkout@v4 + with: + repository: 'PelionIoT/scripts-internal' + token: ${{ secrets.ACCESS_TOKEN }} + path: 'pe-utils/scripts-internal' # Install pyshcheck tooling - run: sudo apt-get update && sudo apt-get install -y pycodestyle pydocstyle black - # git instead of rules to use access token - - run: git config --global url."https://${{ secrets.ACCESS_TOKEN }}@github.com/".insteadOf "git@github.com:" - - run: git config --global url."https://${{ secrets.ACCESS_TOKEN }}@github".insteadOf "https://github" - - run: git config --list - # Linux coreutils is already installed wc -command can be found. - - run: git clone git@github.com:PelionIoT/scripts-internal.git - #- run: git clone https://github.com/PelionIoT/scripts-internal.git + - run: tree - run: echo "." >scripts-internal/.nopyshcheck - run: .github/workflows/pysh-checker.sh ${{ github.event.repository.default_branch }} ${{ github.ref_name }}