This commit is contained in:
Carlos Polop 2021-06-18 00:54:43 +02:00
parent 89f20d5e0c
commit 3c45626043
3 changed files with 24 additions and 45 deletions

View File

@ -13,20 +13,8 @@ on:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel # A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs: jobs:
Run_on_Macos: # This workflow contains a single job called "build"
# The type of runner that the job will run on build:
runs-on: macos-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
# Runs a single command using the runners shell
- name: Run linpeas
run: linPEAS/linpeasasdasdasd.sh
Run_on_Ubuntu:
# The type of runner that the job will run on # The type of runner that the job will run on
runs-on: ubuntu-latest runs-on: ubuntu-latest
@ -60,3 +48,9 @@ jobs:
github_token: ${{ secrets.GITHUB_TOKEN }} github_token: ${{ secrets.GITHUB_TOKEN }}
branch: ${{ github.ref }} branch: ${{ github.ref }}
- uses: actions/checkout@v2
- name: pull-request
uses: repo-sync/pull-request@v2
with:
destination_branch: "master" #Pull request to master
github_token: ${{ secrets.GITHUB_TOKEN }}

View File

@ -1,28 +0,0 @@
# This is a basic workflow to help you get started with Actions
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
pull_request:
branches: [ master ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: macos-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
# Runs a single command using the runners shell
- name: Run linpeas
run: linPEAS/linpeas.sh

View File

@ -1,12 +1,13 @@
# This is a basic workflow to help you get started with Actions # This is a basic workflow to help you get started with Actions
name: CI-linpeas-ubuntu name: CI-Pro
# Controls when the action will run. # Controls when the action will run.
on: on:
# Triggers the workflow on push or pull request events but only for the master branch # Triggers the workflow on push or pull request events but only for the master branch
pull_request: pull_request:
branches: [ master ] paths:
- 'linPEAS/linpeas.sh'
# Allows you to run this workflow manually from the Actions tab # Allows you to run this workflow manually from the Actions tab
workflow_dispatch: workflow_dispatch:
@ -14,7 +15,7 @@ on:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel # A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs: jobs:
# This workflow contains a single job called "build" # This workflow contains a single job called "build"
build: Run_on_ubuntu:
# The type of runner that the job will run on # The type of runner that the job will run on
runs-on: ubuntu-latest runs-on: ubuntu-latest
@ -26,3 +27,15 @@ jobs:
# Runs a single command using the runners shell # Runs a single command using the runners shell
- name: Run linpeas - name: Run linpeas
run: linPEAS/linpeas.sh run: linPEAS/linpeas.sh
Run_on_macos:
runs-on: macos-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
# Runs a single command using the runners shell
- name: Run linpeas
run: linPEAS/linpeas.sh