Skip to content

Commit

Permalink
Attempt to fix broken action
Browse files Browse the repository at this point in the history
  • Loading branch information
Aareon committed Sep 17, 2024
1 parent 74d5d14 commit c9ed797
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions .github/workflows/update_allCountries.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ on:
- cron: '0 0 * * 0' # Run every Sunday at midnight UTC
workflow_dispatch: # Allow manual triggering

permissions:
contents: write
issues: write
pull-requests: write

jobs:
update-geonames:
runs-on: ubuntu-latest
Expand All @@ -29,19 +34,17 @@ jobs:
id: release_notes
run: |
RELEASE_NOTES=$(cat release_notes.txt)
echo "RELEASE_NOTES<<EOF" >> $GITHUB_ENV
echo "$RELEASE_NOTES" >> $GITHUB_ENV
echo "EOF" >> $GITHUB_ENV
echo "RELEASE_NOTES<<EOF" >> $GITHUB_OUTPUT
echo "$RELEASE_NOTES" >> $GITHUB_OUTPUT
echo "EOF" >> $GITHUB_OUTPUT
- name: Create Release
id: create_release
uses: softprops/action-gh-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: release-${{ github.run_number }}
name: Release ${{ github.run_number }}
body: ${{ env.RELEASE_NOTES }}
body: ${{ steps.release_notes.outputs.RELEASE_NOTES }}
files: allCountries.zip
draft: false
prerelease: false
Expand Down

0 comments on commit c9ed797

Please sign in to comment.