-
Notifications
You must be signed in to change notification settings - Fork 134
37 lines (34 loc) · 1.26 KB
/
native-docker-labeled.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: Native docker validator
on:
pull_request:
branches:
- master
types: [opened, reopened, synchronize, labeled, unlabeled]
jobs:
native_docker_image_labeled:
runs-on: ubuntu-latest
if: github.actor != 'dependabot[bot]' && contains(github.event.pull_request.title, 'autoupdate') == false && github.repository == 'demisto/dockerFiles'
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Get changed files
id: changed-files
uses: tj-actions/changed-files@v41
- name: Set up Python 3.11
uses: actions/setup-python@v3
with:
python-version: "3.11"
- name: Run native_docker_labeled Script
if: contains(github.event.pull_request.labels.*.name, 'native image approved') == false
env:
CHANGED_FILES: "${{ steps.changed-files.outputs.all_changed_files }}"
run: |
echo "==== $(date): Starting pipenv setup... ===="
python -m pip install --upgrade pip
pip install pipenv
pwd
cd "$GITHUB_WORKSPACE/.github/workflows/native-docker-labeled"
pipenv install
echo "==== $(date): Running validator... ===="
pipenv run ./native_docker_labeled.py -c "$CHANGED_FILES"