@@ -138,56 +138,4 @@ jobs:
138138 git add charts/**/*
139139 git commit -m "Update charts to version $version"
140140 git remote set-url origin https://x-access-token:${GITHUB_TOKEN}@github.com/${{ github.repository }}.git
141- git push origin "$charts_branch"
142-
143- dispatch-dependency :
144- permissions :
145- contents : read
146- id-token : write
147- actions : write
148- runs-on : ubuntu-latest
149- timeout-minutes : 10
150- needs : publish-images
151- if : github.event_name == 'push' && github.ref_type == 'tag'
152- steps :
153- - name : Read App Secrets
154- uses : rancher-eio/read-vault-secrets@main
155- with :
156- secrets : |
157- secret/data/github/repo/${{ github.repository }}/github/workflow-dispatcher/app-credentials appId | APP_ID ;
158- secret/data/github/repo/${{ github.repository }}/github/workflow-dispatcher/app-credentials privateKey | PRIVATE_KEY
159-
160- - name : Create App Token
161- uses : actions/create-github-app-token@v1
162- id : app-token
163- with :
164- app-id : ${{ env.APP_ID }}
165- private-key : ${{ env.PRIVATE_KEY }}
166- owner : ${{ github.repository_owner }}
167-
168- - name : Run dispatch
169- env :
170- GH_TOKEN : ${{ steps.app-token.outputs.token }}
171- run : |
172- case ${{ github.ref_name }} in
173- "v1.12"*)
174- ACTION_TARGET_BRANCH="main"
175- ;;
176- "v1.11"*)
177- ACTION_TARGET_BRANCH="release/v2.11"
178- ;;
179- "v1.10"*)
180- ACTION_TARGET_BRANCH="release/v2.10"
181- ;;
182- "v1.9"*)
183- ACTION_TARGET_BRANCH="release/v2.9"
184- ;;
185- "v1.3"*)
186- ACTION_TARGET_BRANCH="release/v2.8"
187- ;;
188- *)
189- echo "Not a valid tag, not dispatching event"
190- exit 0
191- esac
192- echo "Running Go get on $ACTION_TARGET_BRANCH"
193- gh workflow run "Go get" --repo rancher/rancher --ref $ACTION_TARGET_BRANCH -F goget_module=github.com/rancher/gke-operator -F goget_version=${{ github.ref_name }} -F source_author=${{ github.actor }}
141+ git push origin "$charts_branch"
0 commit comments