Skip to content

Commit

Permalink
Fix for not triggering workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
cwisniew committed Nov 18, 2023
1 parent 43cf6a1 commit 190c829
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/nightly-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,10 @@ jobs:
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
with:
tag_name: nightly-${{ github.run_number }}
release_name: Nightly build ${{ github.run_number }}
draft: false
prerelease: true
GITHUB_TOKEN: ${{ secrets.NIGHTLY_BUILD_GH_TOKEN }} # This token is provided by Actions, you do not need to create your own token
run: |
LATEST_STABLE_TAG=$(gh release list -R ${{ github.repository}} | grep -v nightly | awk '{ print $1}' | head -1)
echo "Latest Stable Tag: $LATEST_STABLE_TAG"
NIGHTLY_DATE=$(date +%Y%m%d)
echo "Creating for Nightly: $NIGHTLY_DATE"
gh release create nightly-${NIGHTLY-DATE} -R ${{github.repository}} --notes "MapTool Nightly Build for ${{NIGHTLY_DATE}}" --generate-notes -p -target develop

0 comments on commit 190c829

Please sign in to comment.