-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
π DAT-16651: Update OSS Pro Version in Docs (#246)
* Update OSS Pro Version in Docs * create a PR with the updated version number --------- Co-authored-by: Sayali M <sayali@Sayalis-MacBook-Pro>
- Loading branch information
1 parent
d34b152
commit e310f93
Showing
1 changed file
with
48 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
name: Update OSS Pro Version in Docs | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
latest_version: | ||
description: 'Latest version' | ||
required: true | ||
previous_version: | ||
description: 'Previous version' | ||
required: true | ||
repository_dispatch: | ||
types: [oss-released-version] | ||
|
||
jobs: | ||
update-oss-pro-version-docs: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
|
||
- 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 }}" | ||
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 | ||
- name: Commit changes | ||
run: | | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "liquibot" | ||
git add . | ||
git commit -m "Replace OSS and PRO ${{ github.event.client_payload.previous_version }} version with ${{ github.event.client_payload.latest_version }}" | ||
git push | ||
- name: Create Pull Request | ||
uses: peter-evans/create-pull-request@v6 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
commit-message: "Update docs: replace OSS and PRO version $PREVIOUS_VERSION with $LATEST_VERSION" | ||
title: ":wrench Update OSS/Pro Version in Files" | ||
body: | | ||
This PR updates the OSS and PRO versions in the documentation. | ||
branch: update-oss-pro-version-docs-${{ github.event.client_payload.latest_version }} | ||
base: master | ||
labels: "skipReleaseNotes" |