Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

☸️ DAT-16651: use values from inputs or dispatch event and exit gracefully #248

Merged
merged 1 commit into from
Jun 28, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions .github/workflows/update-oss-pro-version-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ jobs:

- name: Update docs
run: |
LATEST_VERSION="${{ github.event.client_payload.latest_version }}"
PREVIOUS_VERSION="${{ github.event.client_payload.previous_version }}"
echo "Updating docs with OSS version: ${{ github.event.client_payload.latest_version }}"
LATEST_VERSION="${{ github.event.client_payload.latest_version || github.event.inputs.latest_version }} "
PREVIOUS_VERSION="${{ github.event.client_payload.previous_version || github.event.inputs.previous_version }}"
echo "Updating docs with OSS version: ${{ github.event.client_payload.latest_version || github.event.inputs.latest_version }}"
sed -i "s/${PREVIOUS_VERSION}/${LATEST_VERSION}/g" ${{ github.workspace }}/Content/Z_Resources/Snippets/text/start-download-files.flsnp
sed -i "s/${PREVIOUS_VERSION}/${LATEST_VERSION}/g" ${{ github.workspace }}/Project/VariableSets/software-versions.flvar

Expand All @@ -32,6 +32,7 @@ jobs:
git config --global user.email "[email protected]"
git config --global user.name "liquibot"
git add .
git diff --cached --exit-code || exit 0 # Check if there are changes to commit
git commit -m "Replace OSS and PRO ${{ github.event.client_payload.previous_version }} version with ${{ github.event.client_payload.latest_version }}"
git push

Expand Down
Loading