1010
1111permissions :
1212 id-token : write
13- contents : read
13+ contents : write
1414
1515env :
1616 CHARTS_DIR : charts
@@ -44,10 +44,15 @@ jobs:
4444 run : |
4545 base=$(yq '.version' "$CHART_PATH/Chart.yaml")
4646 short=${GITHUB_SHA::7}
47- ver="${base}-pr${{ github.event.number }}+ ${short}"
47+ ver="${base}-pr${{ github.event.number }}- ${short}"
4848 yq -i ".version = \"${ver}\"" "$CHART_PATH/Chart.yaml"
4949 echo "ver=$ver" >> $GITHUB_OUTPUT
5050
51+ - name : Configure git identity for AISQUARED_CI_BOT
52+ run : |
53+ git config --global user.name "AISQUARED-CI-BOT[bot]"
54+ git config --global user.email "1447931+AISQUARED-CI-BOT[bot]@users.noreply.github.com"
55+
5156 - name : Release with chart-releaser
52575358 env :
8994 - name : Bump dependency version and update lock
9095 working-directory : infra/${{ env.INFRA_PATH }}
9196 run : |
92- ver="${{ needs.publish_pr_chart.outputs.ver }}"
97+ export ver="${{ needs.publish_pr_chart.outputs.ver }}"
9398 yq -i ".dependencies[] |= ( if .name == \"${{ env.CHART_NAME }}\" then .version = \"${ver}\" else . end )" Chart.yaml
94- helm dependency update .
99+ cat Chart.yaml
95100
96101 - name : Commit to a temporary branch
97102 working-directory : infra
@@ -100,8 +105,8 @@ jobs:
100105 run : |
101106 git switch -c "$BRANCH_NAME" 2>/dev/null || git switch "$BRANCH_NAME"
102107 git add -A
103- git -c user.name="github-actions [bot]" \
104- -c user.email="41898282+github-actions [bot]@users.noreply.github.com" \
108+ git -c user.name="AISQUARED-CI-BOT [bot]" \
109+ -c user.email="1447931+AISQUARED-CI-BOT [bot]@users.noreply.github.com" \
105110 commit -m "test(qa): bump ${{ env.CHART_NAME }} to ${{ needs.publish_pr_chart.outputs.ver }}"
106111 git push -u origin "$BRANCH_NAME" --force
107112
@@ -112,6 +117,9 @@ jobs:
112117 curl -sSL -o argocd https://github.com/argoproj/argo-cd/releases/download/v2.12.3/argocd-linux-amd64
113118 chmod +x argocd && sudo mv argocd /usr/local/bin/argocd
114119
120+ echo "sleeping till chart is ready"
121+ sleep 100
122+
115123 # Point app at the temp branch
116124 argocd app set "${{ env.ARGOCD_APP }}" \
117125 --server "${{ env.ARGOCD_SERVER_HOST }}" \
0 commit comments