Add Script to workflow
jobs:
example-job:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./scripts
steps:
- name: Check out the repository to the runner
uses: actions/checkout@v4
- name: Run a script (in ./scripts)
run: ./my-script.sh
- name: Run another script (in ./scripts)
run: ./my-other-script.sh
- name: Different Working Dir
run: ls -la
working-directory: ../
- name: Run script with direct path
run: ../other-scripts/some-other.sh
# Burada "scripts" klasöründen bir üst dizine (../) çıkıp
# "other-scripts" klasörüne girerek "some-other.sh" dosyasını çalıştırıyoruz.1) runs-on: ubuntu-latest
runs-on: ubuntu-latest2) defaults.run.working-directory: ./scripts
defaults.run.working-directory: ./scriptsSık Karşılaşılan Sorunlar
Özet
Last updated