Skip to content

Commit

Permalink
PR-checker - remove git redirect, use actions/checkout
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
JanneKiiskila committed Oct 7, 2024
1 parent d0af63b commit fd1bb56
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions .github/workflows/pr-checker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 "[email protected]:"
- 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 [email protected]: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 }}

Expand Down

0 comments on commit fd1bb56

Please sign in to comment.