File tree 1 file changed +8
-10
lines changed
1 file changed +8
-10
lines changed Original file line number Diff line number Diff line change @@ -14,22 +14,20 @@ jobs:
14
14
15
15
steps :
16
16
- name : Checkout code
17
- uses : actions/checkout@v3
17
+ uses : actions/checkout@v4
18
18
19
- - name : Install GitHub CLI
20
- run : |
21
- choco install gh --yes
19
+ - name : Check msi_version
20
+ uses : softwareforgood/check-artifact-v4-existence@v0
21
+ id : " check_if_msi_exists"
22
+ with :
23
+ name : agent-${{ github.event.inputs.msi_version }}
22
24
23
- # Step 3: Only needed while we provide manual versions
24
- - name : Check for existing version
25
+ - name : Error if msi exists
26
+ if : " ${{ steps.check_if_msi_exists.outputs.exists == 'true' }} "
25
27
shell : bash
26
28
run : |
27
- if gh release view | grep "agent-${{ github.event.inputs.msi_version }}.msi"; then
28
29
echo "Error: An artifact with version '${{ github.event.inputs.msi_version }}' already exists. Please increment the version."
29
30
exit 1
30
- fi
31
- env :
32
- GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
33
31
34
32
- name : Set up Go
35
33
uses : actions/setup-go@v4
You can’t perform that action at this time.
0 commit comments