mirror of
https://github.com/JasonN3/build-container-installer.git
synced 2025-12-25 02:47:56 +01:00
Co-authored-by: codacy-production[bot] <61871480+codacy-production[bot]@users.noreply.github.com>
105 lines
2.5 KiB
YAML
105 lines
2.5 KiB
YAML
name: Bot commands
|
|
on: issue_comment
|
|
|
|
jobs:
|
|
permissions:
|
|
name: Check Permissions
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Check association
|
|
run: |
|
|
allowed=("OWNER" "COLLABORATOR")
|
|
value="\<${{ github.event.issue.author_association }}\>"
|
|
|
|
if [[ ${allowed[@]} =~ $value ]]
|
|
then
|
|
exit 0
|
|
else
|
|
exit 1
|
|
fi
|
|
|
|
load_vars:
|
|
uses: ./.github/workflows/build_vars.yml
|
|
|
|
run-all_tests:
|
|
name: Run All Tests
|
|
if: >
|
|
github.event.issue.pull_request &&
|
|
contains(github.event.comment.body, '/run tests')
|
|
permissions:
|
|
contents: read
|
|
packages: write
|
|
statuses: write
|
|
needs:
|
|
- permissions
|
|
uses: ./.github/workflows/tests.yml
|
|
with:
|
|
pr: ${{ github.event.issue.number }}
|
|
parent_job_name: Run All Tests
|
|
|
|
run_build_container:
|
|
name: Run Build Container
|
|
if: >
|
|
github.event.issue.pull_request &&
|
|
contains(github.event.comment.body, '/run build container')
|
|
permissions:
|
|
contents: read
|
|
packages: write
|
|
statuses: write
|
|
needs:
|
|
- permissions
|
|
uses: ./.github/workflows/build_container.yml
|
|
with:
|
|
pr: ${{ github.event.issue.number }}
|
|
parent_job_name: Run Build Container
|
|
|
|
run_build_iso:
|
|
name: Run Build ISO
|
|
if: >
|
|
github.event.issue.pull_request &&
|
|
contains(github.event.comment.body, '/run build iso')
|
|
permissions:
|
|
contents: read
|
|
packages: write
|
|
statuses: write
|
|
needs:
|
|
- permissions
|
|
uses: ./.github/workflows/build_iso.yml
|
|
with:
|
|
pr: ${{ github.event.issue.number }}
|
|
parent_job_name: Run Build ISO
|
|
|
|
run_test_iso:
|
|
name: Run ISO Tests
|
|
if: >
|
|
github.event.issue.pull_request &&
|
|
contains(github.event.comment.body, '/run test iso')
|
|
permissions:
|
|
contents: read
|
|
packages: write
|
|
statuses: write
|
|
needs:
|
|
- permissions
|
|
- load_vars
|
|
uses: ./.github/workflows/test_iso.yml
|
|
with:
|
|
pr: ${{ github.event.issue.number }}
|
|
parent_job_name: Run ISO Tests
|
|
|
|
run_test_deployment:
|
|
name: Run ISO Deployment Tests
|
|
if: >
|
|
github.event.issue.pull_request &&
|
|
contains(github.event.comment.body, '/run test iso')
|
|
permissions:
|
|
contents: read
|
|
packages: write
|
|
statuses: write
|
|
needs:
|
|
- permissions
|
|
- load_vars
|
|
- run_test_iso
|
|
uses: ./.github/workflows/test_deployment.yml
|
|
with:
|
|
pr: ${{ github.event.issue.number }}
|
|
parent_job_name: Run ISO Deployment Tests
|