Skip to content

Dev/delivery 70570/update to 6.15.2 #11

Dev/delivery 70570/update to 6.15.2

Dev/delivery 70570/update to 6.15.2 #11

Workflow file for this run

name: check headers
on:
pull_request:
types: [opened, synchronize]
branches:
- 'master'
jobs:
conditional_job_check_files:
runs-on: 'ubuntu-20.04'
outputs:
docs_changed: ${{ steps.check_file_changed.outputs.docs_changed }}
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 2
- shell: pwsh
id: check_file_changed
run: |
# Diff HEAD with the previous commit
$diff = git diff --name-only HEAD^ HEAD
$SourceDiff = $diff | Where-Object { $_ -match '^Classes/AppsFlyer/libAppsFlyer'}
$HasDiff = $SourceDiff.Length -gt 0
echo "docs_changed=$HasDiff" >> $env:GITHUB_OUTPUT
# Run the job only with "docs_changed" equals "True"
conditional_job:
runs-on: 'ubuntu-20.04'
needs: [ conditional_job_check_files ]
if: needs.conditional_job_check_files.outputs.docs_changed == 'True'
steps:
- name: checkout repo
uses: actions/checkout@v3
- name: setup python
uses: actions/setup-python@v2
with:
python-version: '3.7.8'
- name: execute py script
run:
python .github/workflows/Scripts/checkImport.py