Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions .github/workflows/codex-preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ jobs:
any_modified: ${{ steps.check-files.outputs.any_modified }}
steps:
- name: Checkout
# Checkout is needed to get changed files when the event is not a pull request
if: contains(fromJSON('["push", "merge_group", "workflow_dispatch"]'), github.event_name)
# REST API mode is not supported for workflow_dispatch, so keep local git history for manual runs.
if: github.event_name == 'workflow_dispatch'
uses: actions/checkout@v6
with:
fetch-depth: 2
Expand All @@ -53,6 +53,7 @@ jobs:
id: check-files
uses: tj-actions/changed-files@9426d40962ed5378910ee2e21d5f8c6fcbf2dd96 # v47.0.6
with:
use_rest_api: ${{ contains(fromJSON('["push", "merge_group", "pull_request"]'), github.event_name) }}
files: ${{ inputs.path-pattern }}
files_ignore: |
${{ inputs.path-pattern-ignore }}
Expand Down
9 changes: 1 addition & 8 deletions .github/workflows/docs-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -108,19 +108,12 @@ jobs:
deleted_files: ${{ steps.check-modified-file-detail.outputs.deleted_files }}
renamed_files: ${{ steps.check-modified-file-detail.outputs.renamed_files }}
steps:
- name: Checkout
if: contains(fromJSON('["push", "merge_group", "workflow_dispatch"]'), github.event_name)
uses: actions/checkout@v6
with:
ref: ${{ github.event.pull_request.head.sha || github.ref }}
fetch-depth: 2
persist-credentials: false

- name: Get changed files
if: contains(fromJSON('["push", "merge_group", "pull_request"]'), github.event_name)
id: check-files
uses: tj-actions/changed-files@9426d40962ed5378910ee2e21d5f8c6fcbf2dd96 # v47.0.6
with:
use_rest_api: true
files: ${{ inputs.path-pattern != '' && inputs.path-pattern || '**' }}
files_ignore: |
${{ inputs.path-pattern-ignore != '' && inputs.path-pattern-ignore || '' }}
Expand Down
Loading