From c9ed797b5cc8aa7f3723a0f596c111eed51dd285 Mon Sep 17 00:00:00 2001 From: Aareon Sullivan Date: Tue, 17 Sep 2024 15:28:13 -0500 Subject: [PATCH] Attempt to fix broken action --- .github/workflows/update_allCountries.yml | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/.github/workflows/update_allCountries.yml b/.github/workflows/update_allCountries.yml index 2a32d62..d7833fe 100644 --- a/.github/workflows/update_allCountries.yml +++ b/.github/workflows/update_allCountries.yml @@ -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 @@ -29,19 +34,17 @@ jobs: id: release_notes run: | RELEASE_NOTES=$(cat release_notes.txt) - echo "RELEASE_NOTES<> $GITHUB_ENV - echo "$RELEASE_NOTES" >> $GITHUB_ENV - echo "EOF" >> $GITHUB_ENV + echo "RELEASE_NOTES<> $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