on my .github/workflows directory I created a frontend.yml and backend.yml how can configure to run my workflow on a specific folder?
Github actions have a
working-directory option to declare on workflow. It specifies the working directory for all run steps.
Specify for all Jobs:
defaults: run: working-directory: api
This can be configured for specific jobs too. To set
working_directory for a specific job, here is the procedure:
Specify for specific Job:
jobs: job1: runs-on: ubuntu-latest defaults: run: working-directory: api
Answered By – GuiFalourd
Answer Checked By – David Marino (AngularFixing Volunteer)