diff --git a/.github/workflows/release-asgardeo-docs.yml b/.github/workflows/release-asgardeo-docs.yml index 5ba87ebe00..3d5a60c8e0 100644 --- a/.github/workflows/release-asgardeo-docs.yml +++ b/.github/workflows/release-asgardeo-docs.yml @@ -59,21 +59,21 @@ jobs: run: | mkdir -p out/asgardeo/docs cp -r ./en/asgardeo/site/* out/asgardeo/docs/ - zip -r asgardeo-docs-$NEW_VERSION.zip ./out + zip -r asgardeo-docs-${{ env.NEW_VERSION }}.zip ./out - name: Create git tag run: | git config user.name $GIT_USERNAME git config user.email $GIT_USER_EMAIL - git tag "v$NEW_VERSION" - git push "https://$GIT_USERNAME:$GITHUB_TOKEN@github.com/${{ github.repository }}" "v$NEW_VERSION" + git tag "v${{ env.NEW_VERSION }}" + git push "https://$GIT_USERNAME:$GITHUB_TOKEN@github.com/${{ github.repository }}" "v${{ env.NEW_VERSION }}" - name: Create Release id: create_release uses: actions/create-release@v1 with: - tag_name: v$NEW_VERSION - release_name: Asgardeo Docs - v$NEW_VERSION + tag_name: v${{ env.NEW_VERSION }} + release_name: Asgardeo Docs - v${{ env.NEW_VERSION }} draft: false prerelease: false @@ -81,14 +81,14 @@ jobs: uses: actions/upload-release-asset@v1 with: upload_url: ${{ steps.create_release.outputs.upload_url }} - asset_path: ./asgardeo-docs-$NEW_VERSION.zip - asset_name: asgardeo-docs-$NEW_VERSION.zip + asset_path: ./asgardeo-docs-${{ env.NEW_VERSION }}.zip + asset_name: asgardeo-docs-${{ env.NEW_VERSION }}.zip asset_content_type: application/zip - name: Commit and push new version run: | git add VERSION - git commit -m "Increment release version to $NEW_VERSION" + git commit -m "Increment release version to ${{ env.NEW_VERSION }}" git push "https://$GIT_USERNAME:$GITHUB_TOKEN@github.com/${{ github.repository }}" master - name: Update Downstream Repository Version @@ -105,7 +105,7 @@ jobs: CURRENT_VERSION_LINE=$(grep "$VERSION_LINE_PREFIX" "$VERSION_FILE_PATH") # Replacing the current version line with the new version line - NEW_VERSION_LINE="${VERSION_LINE_PREFIX}$NEW_VERSION" + NEW_VERSION_LINE="${VERSION_LINE_PREFIX}${{ env.NEW_VERSION }}" sed -i "s|$CURRENT_VERSION_LINE|$NEW_VERSION_LINE|" "$VERSION_FILE_PATH" # Verifying if the file has changed, and if so, committing and pushing it @@ -113,5 +113,5 @@ jobs: git config user.name $GIT_USERNAME git config user.email $GIT_USER_EMAIL git add "$VERSION_FILE_PATH" - git commit -m "[Dev] Update asgardeo-docs release version to $NEW_VERSION" + git commit -m "[Dev] Update asgardeo-docs release version to ${{ env.NEW_VERSION }}" git push origin $GIT_BRANCH_NAME