Skip to content

Commit

Permalink
work on pr_afn_k8s
Browse files Browse the repository at this point in the history
  • Loading branch information
julsemaan committed Mar 23, 2024
1 parent 1f678cf commit a2c6503
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/docker-admin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,11 @@ jobs:
CHANGE_TYPE: admin
run: |
BRANCH_ID=`date "+%Y%m%d"`
BRANCH_NAME=tmp/$BRANCH_ID
# Checkout the remote ref if it already exist, otherwise, start from main
git checkout origin/tmp/$BRANCH_ID || true
git checkout -b tmp/$BRANCH_ID
git checkout origin/$BRANCH_NAME || true
git checkout -b $BRANCH_NAME
yq -i '.lb.'$CHANGE_TYPE'.image.tag = "'$IMG_TAG'"' charts/afn/values.yaml
Expand All @@ -80,6 +81,6 @@ jobs:
git commit --allow-empty -a -m "bump $CHANGE_TYPE to $IMG_TAG"
git push origin HEAD
(gh pr list --state open --limit 1 --head tmp/$BRANCH_ID | grep tmp/$BRANCH_ID) || \
gh pr create -B main -H tmp/$BRANCH_ID --title "Update images $BRANCH_ID" --body 'Created by Github action'
(gh pr list --state open --limit 1 --head $BRANCH_NAME | grep $BRANCH_NAME) || \
gh pr create -B main -H $BRANCH_NAME --title "Update images $BRANCH_ID" --body 'Created by Github action'

0 comments on commit a2c6503

Please sign in to comment.