Skip to content

Commit

Permalink
script modifications
Browse files Browse the repository at this point in the history
  • Loading branch information
geezer09 committed Nov 19, 2024
1 parent cff4088 commit a5ffe0e
Showing 1 changed file with 6 additions and 11 deletions.
17 changes: 6 additions & 11 deletions .github/workflows/create_release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ jobs:

outputs:
VERSION: ${{ steps.get_version.outputs.VERSION }}
RELEASE_NOTES: ${{ steps.process_release_notes.outputs.body }}
DOWNLOAD_LINK: ${{ steps.upload_asset.outputs.browser_download_url }}

steps:
Expand Down Expand Up @@ -89,8 +88,6 @@ jobs:
echo "Error: Version ${VERSION} not found in the first 5 lines of $NOTES_FILE."
exit 1
fi
RELEASE_NOTES=$(cat "$NOTES_FILE")
echo "body=$RELEASE_NOTES" >> $GITHUB_OUTPUT
# Step 4: Download .vmod file artifact
- name: Download .vmod file artifact
Expand Down Expand Up @@ -142,7 +139,6 @@ jobs:
if: "!contains(github.event.head_commit.message, '[skip ci]')"
runs-on: ubuntu-latest
needs: create-release

steps:
- name: Check if version is beta
id: check_version
Expand All @@ -167,18 +163,17 @@ jobs:
token: ${{ secrets.GITHUB_TOKEN }}
ref: production

- name: Read release notes
id: read_release_notes
run: |
RELEASE_NOTES=$(cat dist/release-notes.md)
echo "::set-output name=RELEASE_NOTES::$RELEASE_NOTES"

- name: Update download.htm
run: |
VERSION=${{ needs.create-release.outputs.VERSION }}
UPDATED_DATE=$(date '+%B %d, %Y')
RELEASE_NOTES=${{ needs.create-release.outputs.RELEASE_NOTES }}
DOWNLOAD_LINK=${{ needs.create-release.outputs.DOWNLOAD_LINK }}
UPDATED_DATE=$(date '+%B %d, %Y')
RELEASE_NOTES=$(cat dist/release-notes.md)
# Echo the variables for debugging
echo "VERSION: $VERSION"
echo "DOWNLOAD_LINK: $DOWNLOAD_LINK"
echo "UPDATED_DATE: $UPDATED_DATE"
NEW_DIV="<div class='well table'>
<a id='download${VERSION//./}' class='track btn btn-large btn-primary' href='${DOWNLOAD_LINK}'>VASL ${VERSION}</a>
<h2 class='pull-right'>Updated ${UPDATED_DATE}</h2>
Expand Down

0 comments on commit a5ffe0e

Please sign in to comment.