Update CI-master_tests.yml
This commit is contained in:
parent
0726fb1256
commit
42aded2dfa
7
.github/workflows/CI-master_tests.yml
vendored
7
.github/workflows/CI-master_tests.yml
vendored
@ -25,7 +25,9 @@ jobs:
|
|||||||
uses: actions/checkout@master
|
uses: actions/checkout@master
|
||||||
with:
|
with:
|
||||||
persist-credentials: false
|
persist-credentials: false
|
||||||
|
# Otherwise, you will failed to push refs to dest repo.
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
ref: refs/heads/${{ github.head_ref }}
|
||||||
|
|
||||||
# Add MSBuild to the PATH: https://github.com/microsoft/setup-msbuild
|
# Add MSBuild to the PATH: https://github.com/microsoft/setup-msbuild
|
||||||
- name: Setup MSBuild.exe
|
- name: Setup MSBuild.exe
|
||||||
@ -107,14 +109,15 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
git config --local user.email "ci@winpeas.com"
|
git config --local user.email "ci@winpeas.com"
|
||||||
git config --global user.name "CI-winpeas"
|
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 commit -m "winpeas binaries auto update" -a --allow-empty
|
||||||
|
|
||||||
# Git push
|
# Git push
|
||||||
- name: Push changes
|
- name: Push changes
|
||||||
uses: ad-m/github-push-action@master
|
uses: ad-m/github-push-action@master
|
||||||
with:
|
with:
|
||||||
|
branch: refs/heads/${{ github.head_ref }}
|
||||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
branch: ${{ github.ref }}
|
|
||||||
|
|
||||||
Build_and_test_linpeas_master:
|
Build_and_test_linpeas_master:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@ -134,7 +137,7 @@ jobs:
|
|||||||
python3 -m builder.linpeas_builder
|
python3 -m builder.linpeas_builder
|
||||||
|
|
||||||
- name: Run linpeas
|
- name: Run linpeas
|
||||||
run: linPEAS/linpeas.sh -h
|
run: linPEAS/linpeas.sh
|
||||||
|
|
||||||
- name: Create local changes
|
- name: Create local changes
|
||||||
run: git add linPEAS/linpeas.sh
|
run: git add linPEAS/linpeas.sh
|
||||||
|
Loading…
Reference in New Issue
Block a user