|
17 | 17 | - name: Set up Python 3.10
|
18 | 18 | uses: actions/setup-python@v4
|
19 | 19 | with:
|
20 |
| - python-version: 3.10 |
| 20 | + python-version: '3.10' |
21 | 21 | - name: Install dependencies
|
22 | 22 | run: |
|
23 | 23 | python -m pip install --upgrade pip
|
@@ -48,11 +48,11 @@ jobs:
|
48 | 48 | poetry version ${{ steps.tag.outputs.result }}
|
49 | 49 | poetry build
|
50 | 50 | if [ "$(curl -s -o /dev/null -w '%{http_code}' https://pypi.org/pypi/connect-cli/${{ steps.tag.outputs.result }}/json)" = "404" ]; then poetry publish -u $TWINE_USERNAME -p $TWINE_PASSWORD; fi
|
51 |
| - - name: Set Connect and Runner major versions |
| 51 | + - name: Set Connect and CLI major versions |
52 | 52 | id: cnctver
|
53 | 53 | run: |
|
54 | 54 | echo connect_major="$(curl -sI https://api.connect.cloudblue.com/public/v1|grep -Fi 'connect-version' | tr -d '\r' | sed -En 's/^Connect-Version: (.*)/\1/p'|cut -f1 -d'.')" >> $GITHUB_OUTPUT
|
55 |
| - echo runner_major="$(echo ${{ steps.tag.outputs.result }}|cut -f1 -d '.')" >> $GITHUB_OUTPUT |
| 55 | + echo cli_major="$(echo ${{ steps.tag.outputs.result }}|cut -f1 -d '.')" >> $GITHUB_OUTPUT |
56 | 56 | - name: Set up QEMU
|
57 | 57 | uses: docker/setup-qemu-action@v2
|
58 | 58 | with:
|
|
72 | 72 | tags: |
|
73 | 73 | type=semver,pattern={{major}}.{{minor}},value=${{ steps.tag.outputs.result }}.0
|
74 | 74 | type=semver,pattern={{major}},value=${{ steps.tag.outputs.result }}.0
|
75 |
| - type=raw,value=latest,enable=${{ steps.cnctver.outputs.connect_major == steps.cnctver.outputs.runner_major }} |
| 75 | + type=raw,value=latest,enable=${{ steps.cnctver.outputs.connect_major == steps.cnctver.outputs.cli_major }} |
76 | 76 | flavor: |
|
77 | 77 | latest=false
|
78 | 78 | - name: Build and push docker image
|
|
97 | 97 | - name: Set up Python 3.10
|
98 | 98 | uses: actions/setup-python@v4
|
99 | 99 | with:
|
100 |
| - python-version: 3.10 |
| 100 | + python-version: '3.10' |
101 | 101 | - name: Install dependencies
|
102 | 102 | run: |
|
103 | 103 | python -m pip install --upgrade pip
|
|
0 commit comments