Skip to content

Commit

Permalink
fix: handle undefined DRY_RUN (#140)
Browse files Browse the repository at this point in the history
Source-Version: 9cabb0ced6ebb12c69991cac853d70ff361a84be
  • Loading branch information
rhacs-bot committed May 13, 2024
1 parent 04e032b commit 2a51d1e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/update-readme.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
README_UPDATE:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}
- name: Updating README
Expand All @@ -27,9 +27,9 @@ jobs:
git push origin HEAD:master
else
echo "Updated README and latest symlink"
git config --global user.name 'roxbot'
git config --global user.email '[email protected]'
git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/"$GITHUB_REPOSITORY"
git config --global user.name '${{ vars.RHACS_BOT_GITHUB_USERNAME }}'
git config --global user.email '${{ vars.RHACS_BOT_GITHUB_EMAIL }}'
git remote set-url origin https://x-access-token:${{ secrets.RHACS_BOT_GITHUB_TOKEN }}@github.com/"$GITHUB_REPOSITORY"
msg="Updated latest version reference to ${LATEST_VERSION}"
if grep -q "$msg" < <(git log -n 1 --pretty='format:%s'); then
echo "Latest version update already exists, but still changes detected!"
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[![Latest version: 4.4.1](https://img.shields.io/badge/Latest%20version-4.4.1-green.svg)][Latest version]
[![Latest version: 3.0.55.0](https://img.shields.io/badge/Latest%20version-3.0.55.0-green.svg)][Latest version]

# Helm charts for the StackRox Kubernetes Security Platform

Expand Down Expand Up @@ -55,4 +55,4 @@ Helm charts for the [StackRox Kubernetes Security Platform](https://www.stackrox
licensed under [Apache License 2.0](./LICENSE).


[Latest version]: ./4.4.1/
[Latest version]: ./3.0.55.0/
2 changes: 1 addition & 1 deletion latest

0 comments on commit 2a51d1e

Please sign in to comment.