diff --git a/.github/workflows/linpeas-macos.yml b/.github/workflows/linpeas-macos.yml index 9035c67..79bef8e 100644 --- a/.github/workflows/linpeas-macos.yml +++ b/.github/workflows/linpeas-macos.yml @@ -1,12 +1,12 @@ # This is a basic workflow to help you get started with Actions -name: CI +name: CI-linpeas-macos # Controls when the action will run. on: # Triggers the workflow on push or pull request events but only for the master branch push: - branches: [ master ] + branches: [ linpeasdevelop ] pull_request: branches: [ master ] @@ -25,6 +25,11 @@ jobs: # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - uses: actions/checkout@v2 + - name: Build linpeas + run: | + cd linPEAS + python3 -m builder.linpeas_builder + # Runs a single command using the runners shell - name: Run linpeas - run: linPEAS/linpeas.sh + run: ./linpeas.sh \ No newline at end of file diff --git a/.github/workflows/linpeas-ubuntu.yml b/.github/workflows/linpeas-ubuntu.yml index bcc225e..d60d29c 100644 --- a/.github/workflows/linpeas-ubuntu.yml +++ b/.github/workflows/linpeas-ubuntu.yml @@ -1,12 +1,12 @@ # This is a basic workflow to help you get started with Actions -name: CI +name: CI-linpeas-ubuntu # Controls when the action will run. on: # Triggers the workflow on push or pull request events but only for the master branch push: - branches: [ master ] + branches: [ linpeasdevelop ] pull_request: branches: [ master ] @@ -25,6 +25,26 @@ jobs: # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - uses: actions/checkout@v2 + - name: Build linpeas + run: | + cd linPEAS + python3 -m builder.linpeas_builder + # Runs a single command using the runners shell - name: Run linpeas - run: linPEAS/linpeas.sh + run: ./linpeas.sh + + - name: Create local changes + run: git add linpeas.sh + + - name: Commit results to Github + run: | + git config --local user.email "" + git config --global user.name "CI-linpeas-ubuntu" + git commit -m "linpeas.sh auto update" -a --allow-empty + + - name: Push changes + uses: ad-m/github-push-action@linpeasdevelop + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + branch: ${{ github.ref }}