Skip to content
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
10 changes: 7 additions & 3 deletions .github/workflows/deploy-cudf-java-docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,19 +41,23 @@ jobs:
- name: Upload cudf-java docs to S3
run: ci/upload_cudf_java_docs.sh ${{ inputs.version }}

- name: Run script to update stable value for cudf-java in docs.yml
env :
- name: Update stable value for cudf-java in docs.yml and projects-to-versions.json
env:
NEW_STABLE_VALUE: ${{ inputs.new_stable_value }}
VERSION: ${{ inputs.version }}
run: |
if [ "$NEW_STABLE_VALUE" != "1" ]; then
echo "Invalid value for new_stable_value: $NEW_STABLE_VALUE"
exit 1
fi

sed -i '/cudf-java:/,/stable:/s/stable: .*/stable: '"$NEW_STABLE_VALUE"'/' _data/docs.yml

echo "Updated stable value for cudf-java to $NEW_STABLE_VALUE in _data/docs.yml"

jq --arg version "$VERSION" '."cudf-java".stable = $version' ci/customization/projects-to-versions.json > tmp.json \
&& mv tmp.json ci/customization/projects-to-versions.json
echo "Updated cudf-java stable version to $VERSION in projects-to-versions.json"

- name: Create Pull Request
uses: peter-evans/create-pull-request@v8
with:
Expand Down