Separate Push and Pull Request Workflows
This commit is contained in:
Родитель
b4c8aceca9
Коммит
f54704e6b0
|
@ -0,0 +1,19 @@
|
|||
name: Pull Request
|
||||
|
||||
on: pull_request
|
||||
|
||||
jobs:
|
||||
check:
|
||||
name: Check Advisories
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Clone repository
|
||||
uses: actions/checkout@v3
|
||||
- name: Set up Python 3
|
||||
uses: actions/setup-python@v4
|
||||
with:
|
||||
python-version: "3.11"
|
||||
- name: Install Python dependencies
|
||||
run: pip install ./
|
||||
- name: Run Advisories Checks
|
||||
run: check_advisories --all
|
|
@ -1,8 +1,6 @@
|
|||
name: Push
|
||||
|
||||
on:
|
||||
# Triggers the workflow on push events only for the default branch
|
||||
pull_request:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
|
|
Загрузка…
Ссылка в новой задаче