Skip to content

Commit 549a82e

Browse files
authored
fix: CI status issues (#58)
* chore: intentionally break fern to test ci * fix: add if: always() to preview-docs workflow * chore: print job status and step outcome to debug * fix: use steps.generate-docs.outcome insted of job.status * chore: reset docs.yml to restore working builds --------- Co-authored-by: dslovinsky <dslovinsky@users.noreply.github.com>
1 parent 40c1f3a commit 549a82e

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

.github/actions/publish-fern/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ runs:
6161
with:
6262
step: finish
6363
token: ${{ inputs.github-token }}
64-
status: ${{ job.status }}
64+
status: ${{ steps.generate-docs.outcome == 'skipped' && 'cancelled' || steps.generate-docs.outcome }}
6565
deployment_id: ${{ steps.start-deploy.outputs.deployment_id }}
6666
env_url: ${{ steps.generate-docs.outputs.url }}
6767
env: ${{ inputs.environment }}

.github/workflows/preview-docs.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ jobs:
4141

4242
- name: Comment Preview URL in PR
4343
uses: actions/github-script@v7
44+
if: always()
4445
with:
4546
script: |
4647
const workspace = process.env.GITHUB_WORKSPACE;

0 commit comments

Comments
 (0)