|
|
@ -14,6 +14,13 @@ jobs:
|
|
|
|
if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.action != 'closed')
|
|
|
|
if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.action != 'closed')
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
name: Build and Deploy Job
|
|
|
|
name: Build and Deploy Job
|
|
|
|
|
|
|
|
permissions:
|
|
|
|
|
|
|
|
actions: read
|
|
|
|
|
|
|
|
contents: read
|
|
|
|
|
|
|
|
deployments: read
|
|
|
|
|
|
|
|
packages: none
|
|
|
|
|
|
|
|
pull-requests: write
|
|
|
|
|
|
|
|
security-events: write
|
|
|
|
steps:
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
with:
|
|
|
|
with:
|
|
|
@ -35,6 +42,13 @@ jobs:
|
|
|
|
close_pull_request_job:
|
|
|
|
close_pull_request_job:
|
|
|
|
if: github.event_name == 'pull_request' && github.event.action == 'closed'
|
|
|
|
if: github.event_name == 'pull_request' && github.event.action == 'closed'
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
permissions:
|
|
|
|
|
|
|
|
actions: read
|
|
|
|
|
|
|
|
contents: read
|
|
|
|
|
|
|
|
deployments: read
|
|
|
|
|
|
|
|
packages: none
|
|
|
|
|
|
|
|
pull-requests: write
|
|
|
|
|
|
|
|
security-events: write
|
|
|
|
name: Close Pull Request Job
|
|
|
|
name: Close Pull Request Job
|
|
|
|
steps:
|
|
|
|
steps:
|
|
|
|
- name: Close Pull Request
|
|
|
|
- name: Close Pull Request
|
|
|
|