Update CI-master_tests.yml

This commit is contained in:
Carlos Polop 2021-07-16 10:42:28 +01:00 committed by GitHub
parent 0726fb1256
commit 42aded2dfa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -25,7 +25,9 @@ jobs:
uses: actions/checkout@master
with:
persist-credentials: false
# Otherwise, you will failed to push refs to dest repo.
fetch-depth: 0
ref: refs/heads/${{ github.head_ref }}
# Add MSBuild to the PATH: https://github.com/microsoft/setup-msbuild
- name: Setup MSBuild.exe
@ -107,14 +109,15 @@ jobs:
run: |
git config --local user.email "ci@winpeas.com"
git config --global user.name "CI-winpeas"
git pull origin "${{ github.ref }}" --autostash --rebase -Xours
git commit -m "winpeas binaries auto update" -a --allow-empty
# Git push
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: ${{ github.ref }}
branch: refs/heads/${{ github.head_ref }}
github_token: ${{ secrets.GITHUB_TOKEN }}
Build_and_test_linpeas_master:
runs-on: ubuntu-latest
@ -134,7 +137,7 @@ jobs:
python3 -m builder.linpeas_builder
- name: Run linpeas
run: linPEAS/linpeas.sh -h
run: linPEAS/linpeas.sh
- name: Create local changes
run: git add linPEAS/linpeas.sh