Skip to content

create build workflow #7

create build workflow

create build workflow #7

Workflow file for this run

name: build
on:
push:
branches:
# - main
- create-workflow
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set linter directories
run: echo "LINTER_DIRS=$(find . -maxdepth 1 -type d -not -name '.*' -exec basename {} \; | tr '\n' ' ')" >> $GITHUB_ENV
- run: echo $LINTER_DIRS
- uses: dorny/paths-filter@v3
id: changes
with:
filters: |
linter_dirs:
- ${{ join(fromJson(env.LINTER_DIRS), '/**\n- ') }}/**
- run: |
echo "Changed directories: ${{ steps.changes.outputs.linter_dirs }}"