diff --git a/.github/workflows/zsm-generate-pr.yml b/.github/workflows/zsm-generate-pr.yml index b70410e..45ff6bd 100644 --- a/.github/workflows/zsm-generate-pr.yml +++ b/.github/workflows/zsm-generate-pr.yml @@ -16,6 +16,8 @@ jobs: steps: - name: 🚚 Get latest code uses: actions/checkout@v4 + with: + path: 'airspace' - name: Get current date id: date @@ -42,10 +44,13 @@ jobs: echo "## Downloading and converting kmlfile ...: ${{ github.event.inputs.ZSM_URL }}" node ./main.js ${{ github.event.inputs.ZSM_URL }} ../zsm_openair.txt + cd ../airspace + git pull + - name: ⚙️ Push .kml + .kmz to repo uses: stefanzweifel/git-auto-commit-action@v5 with: - repository: ./ + repository: ./airspace commit_message: "Add ZSM file for ${{ steps.date.outputs.date }}" branch: autogenerated/zsm-${{ steps.date.outputs.date }} create_branch: true