Dashboard type #37
Workflow file for this run
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
name: Basic workflow checks | |
on: | |
pull_request: | |
branches: '**' | |
jobs: | |
lint: | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: checkout | |
uses: actions/checkout@v2 | |
- name: Install Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.9 | |
- name: Install and run pre-commit | |
uses: pre-commit/action@v2.0.0 | |
with: | |
extra_args: --all-files | |
- name: Get debug value | |
id: debug_value | |
run: | | |
echo ::set-output name=DEBUG_SWITCH::$(grep -A0 'debug:' ohsomeTools/config.yml | tail -n1 | awk '{ print $2}') | |
shell: bash | |
- name: Fail if debug not false | |
run: exit 1 | |
if: steps.debug_value.outputs.DEBUG_SWITCH != 'false' && steps.debug_value.outputs.DEBUG_SWITCH != 'False' |