update all values need take from environment to config file #37
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# Copyright 2019-2024 VMware, Inc. | |
# SPDX-License-Identifier: Apache-2.0 | |
# | |
name: check-header | |
on: | |
push: | |
branches: ["**"] | |
pull_request: | |
branches: ['**'] | |
jobs: | |
check-header: | |
runs-on: ubuntu-latest # runs a test on Ubuntu | |
env: | |
GITHUB_CONTEXT: ${{ toJson(github) }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 3 | |
- run: wget https://raw.githubusercontent.com/vmware/data-annotator-for-machine-learning/devops/check_headers.py | |
- name: Check Header | |
run: | | |
chmod +x ./check_headers.py | |
python ./check_headers.py -f "$(git diff --name-only --diff-filter=d $GITHUB_CONTEXT)" |