File tree Expand file tree Collapse file tree 2 files changed +13
-1
lines changed
Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Original file line number Diff line number Diff line change 11on :
22 workflow_call :
3+ inputs :
4+ githubTag :
5+ description : ' The semver tag of the GitHub Release'
6+ type : string
37 outputs :
48 changeCaseId :
59 description : Id for the change case created
2630 run : |
2731 # Temp disable exit on error
2832 set +e
29- CTC_RESULT=$(sfchangecase create --location ${{github.repositoryUrl}} --release ${{github.repository}}.$(date +%F) --json)
33+ if [ -n "$GITHUB_TAG" ]; then
34+ RELEASE_URL="${{ github.server_url }}/${{ github.repository }}/releases/tag/$GITHUB_TAG"
35+ else
36+ RELEASE_URL="${{ github.server_url }}/${{ github.repository }}/releases"
37+ fi
38+ CTC_RESULT=$(sfchangecase create --location ${{github.repositoryUrl}} --test-environment $RELEASE_URL --release ${{github.repository}}.$(date +%F) --json)
3039 # Re-enable exit on error
3140 set -e
3241
4251 exit 1
4352 fi
4453 env :
54+ GITHUB_TAG : ${{ inputs.githubTag }}
4555 SF_CHANGE_CASE_SFDX_AUTH_URL : ${{ secrets.SF_CHANGE_CASE_SFDX_AUTH_URL}}
4656 SF_CHANGE_CASE_TEMPLATE_ID : ${{ secrets.SF_CHANGE_CASE_TEMPLATE_ID}}
4757 SF_CHANGE_CASE_CONFIGURATION_ITEM : ${{ secrets.SF_CHANGE_CASE_CONFIGURATION_ITEM}}
Original file line number Diff line number Diff line change 9595 needs : [check-publish]
9696 if : inputs.ctc && needs.check-publish.outputs.published == 'false'
9797 uses : salesforcecli/github-workflows/.github/workflows/ctcOpen.yml@main
98+ with :
99+ githubTag : ${{ inputs.githubTag }}
98100 secrets : inherit
99101
100102 npm-publish :
You can’t perform that action at this time.
0 commit comments