Skip to content

Commit

Permalink
Merge pull request #15 from mesosphere/kjoshi/fix-gha-branch-naming
Browse files Browse the repository at this point in the history
fix: Fix branch name of Trivy Bundles Update PRs
  • Loading branch information
asekretenko authored Dec 28, 2023
2 parents cec1683 + b2c51f8 commit 2b6fe47
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/rebuild-trivy-bundle.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ jobs:
echo "checkout branch"
dkp_insights_branch_name=$( echo $dkp_insights_branch | cut -f2- -d/ )
git checkout -b GHA/update-trivy-bundles-image-in/$dkp_insights_branch_name $dkp_insights_branch
git checkout -b gha-trivy-bundles-update/$dkp_insights_branch_name/$trivy_bundles_image_tag $dkp_insights_branch
echo "replace image tag name"
replace_string=$TRIVY_IMAGE_NAME:$trivy_image_version-$updated_timestamp
Expand All @@ -217,7 +217,7 @@ jobs:
echo "commit and push changes"
git add ./charts/dkp-insights/values.yaml
git commit -m "Updating trivy-bundles image on $(date -u +%Y-%m-%d)"
git push origin GHA/update-trivy-bundles-image-in/$dkp_insights_branch_name
git push origin gha-trivy-bundles-update/$dkp_insights_branch_name/$trivy_bundles_image_tag
echo "open a pull request"
hub pull-request -m "trivy-bundles image automatic update $(date -u +%Y-%m-%d)" \
Expand Down

0 comments on commit 2b6fe47

Please sign in to comment.