Update CI-master_tests.yml
This commit is contained in:
parent
0726fb1256
commit
42aded2dfa
9
.github/workflows/CI-master_tests.yml
vendored
9
.github/workflows/CI-master_tests.yml
vendored
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user