diff --git a/.github/workflows/nightly-publish.yml b/.github/workflows/nightly-publish.yml index 52a6340e..12f46ca8 100644 --- a/.github/workflows/nightly-publish.yml +++ b/.github/workflows/nightly-publish.yml @@ -34,7 +34,7 @@ jobs: - name: Retrieve all commit messages pushed and put in the environment variable GITHUB_COMMITS_TEXT run: | - echo "GITHUB_COMMITS_TEXT=$(git log --format=%s ${{ github.sha }}..${{ github.event.before }})" >> $GITHUB_ENV + export GITHUB_COMMITS_TEXT=$(git log --format=%s ${{ github.sha }}..${{ github.event.before }}) # The USERNAME and TOKEN need to correspond to the credentials environment variables used in # the publishing section of your build.gradle @@ -46,6 +46,7 @@ jobs: GITHUB_USERNAME: ${{ github.actor }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} BUILD_NUMBER: ${{ github.run_number }} + GITHUB_COMMITS_TEXT: $GITHUB_COMMITS_TEXT - name: Delete packages, keep most recent uses: actions/delete-package-versions@v4