Skip to content

create build workflow #9

create build workflow

create build workflow #9

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: |
IFS=' ' LINTER_DIRS=($(find . -maxdepth 1 -type d -not -name '.*' -exec basename {} \; | tr '\n' ' '))
echo "LINTER_DIRS=$LINTER_DIRS" >> $GITHUB_ENV
- run: for i in ${{ env.LINTER_DIRS }}; do echo -n "--$i--"; done
# - 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 }}"