From 42aded2dfac383a809e87102685a22d2b8cc1df3 Mon Sep 17 00:00:00 2001 From: Carlos Polop Date: Fri, 16 Jul 2021 10:42:28 +0100 Subject: [PATCH] Update CI-master_tests.yml --- .github/workflows/CI-master_tests.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/CI-master_tests.yml b/.github/workflows/CI-master_tests.yml index f67c503..86f2acb 100644 --- a/.github/workflows/CI-master_tests.yml +++ b/.github/workflows/CI-master_tests.yml @@ -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