Skip to content

Commit

Permalink
PR-check:use actions/checkout, update actions/java to v4
Browse files Browse the repository at this point in the history
The git redirect is left behind in self-hosted runners, which is not a
good idea.

update also actions/java to v4.
  • Loading branch information
JanneKiiskila committed Oct 7, 2024
1 parent 585a987 commit 6ed4529
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/PR-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
PDM_BINARY_ARTIFACTS_DIR: pdm-binary-artifacts
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v3
- uses: actions/setup-java@v4
with:
java-version: "8"
distribution: "temurin"
Expand Down Expand Up @@ -47,12 +47,13 @@ jobs:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: Get scripts internal...
run: |
git config --global url."https://${{ secrets.ACCESS_TOKEN }}@github.com/".insteadOf "[email protected]:"
git clone [email protected]:PelionIoT/scripts-internal.git
- uses: actions/checkout@v4
with:
repository: 'PelionIoT/scripts-internal'
token: ${{ secrets.ACCESS_TOKEN }}
path: 'scripts-internal'
- name: Run no-more-lines w pysh-check
run: |
sudo apt install pycodestyle pydocstyle black
echo "." >scripts-internal/.nopyshcheck
touch scripts-internal/.nopyshcheck
scripts-internal/ci/more-lines-checker.sh ${{ github.event.repository.default_branch }} ${{ github.ref_name }} "scripts-internal/pysh-check/pysh-check.sh --workdir ."

0 comments on commit 6ed4529

Please sign in to comment.