Skip to content

Commit

Permalink
actio update
Browse files Browse the repository at this point in the history
  • Loading branch information
llauner committed Mar 26, 2024
1 parent 8fcd70b commit a90e24f
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion .github/workflows/zsm-generate-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:

- name: Get current date
id: date
run: echo "::set-output name=date::$(date +'%Y-%m-%d')"
run: echo "::set-output name=date::$(date +'%Y-%m-%d-%H:%m:%S')"

# - name: Create and checkout new branch
# run: |
Expand All @@ -44,6 +44,15 @@ jobs:
echo "## Downloading and converting kmlfile ...: ${{ github.event.inputs.ZSM_URL }}"
node ./main.js ${{ github.event.inputs.ZSM_URL }} ../airspace/zsm_openair.txt
- name: Insert new ZSM
run: |
cd airspace
echo "## Remove old ZSM entries from france.txt ..."
sed -i '/\* ### ZSM start ###/,/\* ### ZSM stop ###/d' france.txt
echo "## Insert new ZSM entries ..."
cd ../airspace
git pull
Expand All @@ -55,3 +64,10 @@ jobs:
branch: autogenerated/zsm-${{ steps.date.outputs.date }}
create_branch: true
file_pattern: 'zsm_openair.txt'

- name: Create Pull Request
uses: peter-evans/create-pull-request@v3
with:
title: "Add ZSM file for ${{ steps.date.outputs.date }}"
branch: "autogenerated/zsm-${{ steps.date.outputs.date }}"
body: "This PR adds a new ZSM file for the date ${{ steps.date.outputs.date }}."

0 comments on commit a90e24f

Please sign in to comment.