|
29 | 29 | - name: cleanup
|
30 | 30 | run: rm -rf {*,.*} || true
|
31 | 31 | - name: checkout-the-move2kube-fork-of-upstream-repo
|
| 32 | + shell: bash |
32 | 33 | run: |
|
33 | 34 | git clone 'https://move2kube:${{ secrets.MOVE2KUBE_PATOKEN }}@github.com/move2kube/community-operators'
|
34 | 35 | cd community-operators/ || exit 1
|
|
37 | 38 | git config user.email [email protected]
|
38 | 39 | echo 'copy-bundle-into-fork-creating-new-version-dir'
|
39 | 40 | cd operators/move2kube-operator/ || exit 1
|
40 |
| - cp -r /tmp/bundle-operator-move2kube '${{ github.event.inputs.tag }}' && cp /tmp/bundle.Dockerfile '${{ github.event.inputs.tag }}/bundle.Dockerfile' |
| 41 | + VERSION='${{ github.event.inputs.tag }}' |
| 42 | + VERSION_WITHOUT_V="${VERSION#v}" |
| 43 | + cp -r /tmp/bundle-operator-move2kube "${VERSION_WITHOUT_V}" && cp /tmp/bundle.Dockerfile "${VERSION_WITHOUT_V}"/bundle.Dockerfile |
| 44 | + echo 'make a commit' |
| 45 | + git add -A |
| 46 | + git commit -s -m 'operator move2kube-operator (${{ github.event.inputs.tag }})' |
| 47 | + git push -u origin main |
| 48 | + # - name: create-pull-request |
| 49 | + # run: | |
| 50 | + # curl "https://api.github.com/repos/k8s-operatorhub/community-operators/pulls" --user "${GITHUB_USER}:${GITHUB_TOKEN}" -X POST --data '{"title": "'"$(git log -1 --format=%s)"'", "base": "main", "body": "An automated PR to update konveyor-operator to v'"${OPERATOR_VERSION}"'", "head": "'"${GITHUB_USER}:${OPERATOR_VERSION}"'"}' |
| 51 | + - name: checkout-the-move2kube-fork-of-the-prod-upstream-repo |
| 52 | + shell: bash |
| 53 | + run: | |
| 54 | + git clone 'https://move2kube:${{ secrets.MOVE2KUBE_PATOKEN }}@github.com/move2kube/community-operators-prod' |
| 55 | + cd community-operators-prod/ || exit 1 |
| 56 | + git checkout main |
| 57 | + git config user.name move2kube |
| 58 | + git config user.email [email protected] |
| 59 | + echo 'copy-bundle-into-fork-of-prod-repo-creating-new-version-dir' |
| 60 | + cd operators/move2kube-operator/ || exit 1 |
| 61 | + VERSION='${{ github.event.inputs.tag }}' |
| 62 | + VERSION_WITHOUT_V="${VERSION#v}" |
| 63 | + cp -r /tmp/bundle-operator-move2kube "${VERSION_WITHOUT_V}" && cp /tmp/bundle.Dockerfile "${VERSION_WITHOUT_V}"/bundle.Dockerfile |
41 | 64 | echo 'make a commit'
|
42 | 65 | git add -A
|
43 | 66 | git commit -s -m 'operator move2kube-operator (${{ github.event.inputs.tag }})'
|
|
0 commit comments