1212 type : boolean
1313 required : false
1414 default : false
15- skip_upload_artifact :
16- description : ' skip uploading the artifact'
15+ skip_upload_pipeline :
16+ description : ' skip uploading the artifact to the github pipeline '
1717 type : boolean
1818 required : false
1919 default : false
8383 run : |
8484 cargo install --locked cargo-xwin --force
8585
86- - name : Set tag and skip_upload=false for pre-release
86+ - name : If pre-release set and verify tag matches Cargo.toml version
8787 if : ${{ inputs.pre-release}}
8888 run : |
8989 NEWRELIC_AGENT_CONTROL_VERSION=$(sed -n 's/^version = "\(.*\)"/\1/p' agent-control/Cargo.toml)
@@ -92,11 +92,11 @@ jobs:
9292 exit 1
9393 fi
9494
95- - name : Set tag and skip_upload =true for testing
95+ - name : If not pre-release, set tag and SKIP_UPLOAD_RELEASE =true
9696 if : ${{ ! inputs.pre-release }}
9797 run : |
9898 git tag ${{ inputs.tag_name }}
99- echo SKIP_UPLOAD ="--skip=publish" >> $GITHUB_ENV
99+ echo SKIP_UPLOAD_RELEASE ="--skip=publish" >> $GITHUB_ENV
100100
101101 - name : Skip packages sign
102102 if : ${{ inputs.skip_sign }}
@@ -106,7 +106,7 @@ jobs:
106106 - name : Release packages with GoReleaser
107107 uses : goreleaser/goreleaser-action@e435ccd777264be153ace6237001ef4d979d3a7a # v6
108108 with :
109- args : release ${{ env.SKIP_UPLOAD }} ${{ env.SKIP_SIGN }} --clean --verbose --timeout 2h
109+ args : release ${{ env.SKIP_UPLOAD_RELEASE }} ${{ env.SKIP_SIGN }} --clean --verbose --timeout 2h
110110 env :
111111 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
112112 GPG_PASSPHRASE : ${{ secrets.OHAI_GPG_PASSPHRASE }}
@@ -116,7 +116,7 @@ jobs:
116116 GORELEASER_CURRENT_TAG : ${{ inputs.tag_name }}
117117
118118 - name : Upload assets to pipeline
119- if : ${{ !inputs.skip_upload_artifact }}
119+ if : ${{ !inputs.skip_upload_pipeline }}
120120 uses : actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
121121 with :
122122 retention-days : 1
0 commit comments