Skip to content

Commit

Permalink
minor formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
AshwinSriram11 committed Oct 26, 2024
1 parent f1849d9 commit 0d0d703
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions .github/workflows/website-release-update.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Check and Update Release Version in Website Repository
name: Check and Update Release Version

on:
schedule:
Expand All @@ -11,7 +11,6 @@ jobs:
steps:
- name: Checkout repo
uses: actions/checkout@v4

- name: Get latest release tag from prometheus-operator repository
id: get_latest_release
run: |
Expand All @@ -21,7 +20,6 @@ jobs:
exit 1
fi
echo "latest-release = $LATEST_RELEASE" >> "$GITHUB_OUTPUT"
- name: Check version in website repository
run: |
JSON_FILE="data/prometheusOperator.json"
Expand All @@ -35,7 +33,6 @@ jobs:
echo "Versions do not match. An update is required."
echo "update_needed=true" >> "$GITHUB_ENV"
fi
- name: Update version
if: env.update_needed == 'true'
run: |
Expand All @@ -51,16 +48,12 @@ jobs:
git add $JSON_FILE
git commit -m "chore: bump to $JSON_FILE"
git push origin update-version
- name: Create Pull Request
if: env.update_needed == 'true'
uses: rhobs/create-pull-request@v3
uses: peter-evans/create-pull-request@v7
with:
token: ${{ secrets.GITHUB_TOKEN }}
base: main
head: update-version
title: "chore: bump to ${{ steps.get_latest_release.outputs.latest_release }}"
body: "This PR updates the release version in prometheusOperator.json file to the latest version: ${{ steps.get_latest_release.outputs.latest_release }}"



body: "This PR updates the release version in prometheusOperator.json file to the latest version: ${{ steps.get_latest_release.outputs.latest_release }}"rhobs/create-pull-request@v3

0 comments on commit 0d0d703

Please sign in to comment.