diff --git a/.github/workflows/ctcOpen.yml b/.github/workflows/ctcOpen.yml index bce3ec2..a4a7370 100644 --- a/.github/workflows/ctcOpen.yml +++ b/.github/workflows/ctcOpen.yml @@ -22,10 +22,8 @@ jobs: - run: npm install -g @salesforce/change-case-management --omit=dev - name: Open CTC case id: ctc - uses: salesforcecli/github-workflows/.github/actions/retry@main - with: - max_attempts: 5 - command: | + shell: bash + run: | CTC_RESULT=$(sfchangecase create --location ${{github.repositoryUrl}} --release ${{github.repository}}.$(date +%F) --json) STATUS=$(printf '%s' "$CTC_RESULT" | jq -r '.status') diff --git a/.github/workflows/npmPublish.yml b/.github/workflows/npmPublish.yml index 67a4925..31f565c 100644 --- a/.github/workflows/npmPublish.yml +++ b/.github/workflows/npmPublish.yml @@ -84,7 +84,7 @@ jobs: npm-publish: needs: [check-publish, ctc-open] - if: ${{ always() && needs.check-publish.outputs.published == 'false' }} + if: ${{ always() && needs.check-publish.outputs.published == 'false' && (!inputs.ctc || (inputs.ctc && needs.ctc-open.outputs.changeCaseId)) }} runs-on: ${{ inputs.runsOn }} steps: - uses: actions/checkout@v4 @@ -97,7 +97,6 @@ jobs: - uses: salesforcecli/github-workflows/.github/actions/yarnInstallWithRetries@main - run: yarn build - run: npm install -g @salesforce/plugin-release-management - - name: NPM Release run: | sf-release npm:package:release \