Skip to content

Commit

Permalink
test: use branch
Browse files Browse the repository at this point in the history
Source-Version: d9ae0ae8b4123120f25d32cd83a6dcac30d8a1d4
  • Loading branch information
rhacs-bot committed May 8, 2024
1 parent c9572a3 commit 52970dc
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 10 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/update-readme.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ name: Update repository's main README file

on:
push:
branches: [main]
branches: [main, gavin/ROX-21045/switch-bot]

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 @@ -24,10 +24,10 @@ jobs:
if git diff --quiet HEAD; then
echo "No updates."
# Keep master in sync with main
git push origin HEAD:master
git push origin HEAD:gavin/ROX-21045/switch-bot
else
echo "Updated README and latest symlink"
git config --global user.name '${{ vars.RHACS_BOT_GITHUB_TOKEN }}'
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}"
Expand All @@ -37,8 +37,8 @@ jobs:
exit 1
fi
git commit -am "$msg 🤖"
git push origin HEAD:main
git push origin HEAD:gavin/ROX-21045/switch-bot
# Keep master in sync with main
git push origin HEAD:master
git push origin HEAD:gavin/ROX-21045/switch-bot
fi
echo "✓ Done"
5 changes: 2 additions & 3 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,5 +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 52970dc

Please sign in to comment.