Skip to content
Merged
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
22 changes: 11 additions & 11 deletions .github/workflows/data-sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ jobs:

- name: Check for existing PR
id: check-pr
uses: actions/github-script@v8
uses: actions/github-script@v9
with:
script: |
const { data: prs } = await github.rest.pulls.list({
Expand All @@ -128,7 +128,7 @@ jobs:
- name: Create PR if needed
id: create-pr
if: fromJson(steps.check-pr.outputs.result).exists == false
uses: actions/github-script@v8
uses: actions/github-script@v9
with:
script: |
const pr = await github.rest.pulls.create({
Expand Down Expand Up @@ -175,7 +175,7 @@ jobs:
fi

- name: Add deployment instructions comment
uses: actions/github-script@v8
uses: actions/github-script@v9
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
Expand All @@ -193,7 +193,7 @@ jobs:
});

- name: Comment on source PR
uses: actions/github-script@v8
uses: actions/github-script@v9
with:
github-token: ${{ secrets.DATA_REPO_TOKEN }}
script: |
Expand Down Expand Up @@ -240,7 +240,7 @@ jobs:
steps:
- name: Find corresponding Website PR
id: find-pr
uses: actions/github-script@v8
uses: actions/github-script@v9
with:
script: |
const targetBranch = 'data/${{ github.event.client_payload.branch }}';
Expand Down Expand Up @@ -268,7 +268,7 @@ jobs:
- name: Check for deploy label on source PR
id: check-label
if: steps.find-pr.outputs.pr_number
uses: actions/github-script@v8
uses: actions/github-script@v9
with:
github-token: ${{ secrets.DATA_REPO_TOKEN }}
script: |
Expand All @@ -284,7 +284,7 @@ jobs:

- name: Notify (no deploy label)
if: steps.find-pr.outputs.pr_number && steps.check-label.outputs.has_deploy_label != 'true'
uses: actions/github-script@v8
uses: actions/github-script@v9
with:
github-token: ${{ secrets.DATA_REPO_TOKEN }}
script: |
Expand All @@ -300,7 +300,7 @@ jobs:

- name: Notify deployment starting (with deploy label)
if: steps.find-pr.outputs.pr_number && steps.check-label.outputs.has_deploy_label == 'true'
uses: actions/github-script@v8
uses: actions/github-script@v9
with:
github-token: ${{ secrets.DATA_REPO_TOKEN }}
script: |
Expand All @@ -322,7 +322,7 @@ jobs:

steps:
- name: Trigger deploy-production workflow
uses: actions/github-script@v8
uses: actions/github-script@v9
with:
script: |
console.log('Dispatching deploy-production event...');
Expand Down Expand Up @@ -353,7 +353,7 @@ jobs:

steps:
- name: Close corresponding PR and delete branch
uses: actions/github-script@v8
uses: actions/github-script@v9
with:
script: |
const targetBranch = 'data/${{ github.event.client_payload.branch }}';
Expand Down Expand Up @@ -397,7 +397,7 @@ jobs:
}

- name: Comment on source PR
uses: actions/github-script@v8
uses: actions/github-script@v9
with:
github-token: ${{ secrets.DATA_REPO_TOKEN }}
script: |
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/deploy-preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ jobs:
echo "✓ Propagation delay complete"

- name: Comment on source PR with preview URL
uses: actions/github-script@v8
uses: actions/github-script@v9
with:
github-token: ${{ secrets.DATA_REPO_TOKEN }}
script: |
Expand Down Expand Up @@ -188,7 +188,7 @@ jobs:

- name: Handle failure
if: failure()
uses: actions/github-script@v8
uses: actions/github-script@v9
with:
github-token: ${{ secrets.DATA_REPO_TOKEN }}
script: |
Expand All @@ -209,7 +209,7 @@ jobs:

- name: Handle cancellation
if: cancelled()
uses: actions/github-script@v8
uses: actions/github-script@v9
with:
github-token: ${{ secrets.DATA_REPO_TOKEN }}
script: |
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/deploy-production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ jobs:
- name: Get PR information (for manual dispatch)
if: github.event_name == 'workflow_dispatch' && inputs.website_pr != ''
id: pr_info
uses: actions/github-script@v8
uses: actions/github-script@v9
with:
script: |
const { data: pr } = await github.rest.pulls.get({
Expand Down Expand Up @@ -240,7 +240,7 @@ jobs:
github.event_name == 'repository_dispatch' &&
github.event.client_payload.website_pr != null &&
github.event.client_payload.website_pr != ''
uses: actions/github-script@v8
uses: actions/github-script@v9
with:
script: |
const websitePR = ${{ github.event.client_payload.website_pr }};
Expand All @@ -265,7 +265,7 @@ jobs:
github.event_name == 'repository_dispatch' &&
github.event.client_payload.pr_branch != null &&
github.event.client_payload.pr_branch != ''
uses: actions/github-script@v8
uses: actions/github-script@v9
continue-on-error: true
with:
script: |
Expand All @@ -284,7 +284,7 @@ jobs:

- name: Comment on source PR (auto mode)
if: github.event_name == 'repository_dispatch'
uses: actions/github-script@v8
uses: actions/github-script@v9
continue-on-error: true
with:
github-token: ${{ secrets.DATA_REPO_TOKEN }}
Expand All @@ -308,7 +308,7 @@ jobs:

- name: Comment on Website PR (manual retry mode)
if: github.event_name == 'workflow_dispatch' && inputs.website_pr != ''
uses: actions/github-script@v8
uses: actions/github-script@v9
continue-on-error: true
with:
script: |
Expand All @@ -328,7 +328,7 @@ jobs:

- name: Handle deployment failure
if: failure()
uses: actions/github-script@v8
uses: actions/github-script@v9
continue-on-error: true
env:
GITHUB_REPO: ${{ github.repository }}
Expand Down
26 changes: 13 additions & 13 deletions .github/workflows/website-commands.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ jobs:
steps:
- name: Parse command
id: parse
uses: actions/github-script@v8
uses: actions/github-script@v9
with:
script: |
const body = (context.eventName === 'issue_comment'
Expand Down Expand Up @@ -88,7 +88,7 @@ jobs:
- name: Check authorization
if: steps.parse.outputs.command != 'none'
id: auth
uses: actions/github-script@v8
uses: actions/github-script@v9
env:
ALLOWED_USERS: ${{ env.ALLOWED_USERS }}
with:
Expand All @@ -109,7 +109,7 @@ jobs:

- name: Reject unauthorized user
if: steps.parse.outputs.command != 'none' && steps.auth.outputs.authorized != 'true'
uses: actions/github-script@v8
uses: actions/github-script@v9
with:
script: |
const prNumber = context.eventName === 'issue_comment'
Expand All @@ -129,7 +129,7 @@ jobs:
- name: Get PR details
if: steps.parse.outputs.command != 'none' && steps.auth.outputs.authorized == 'true'
id: pr
uses: actions/github-script@v8
uses: actions/github-script@v9
with:
script: |
const prNumber = context.eventName === 'issue_comment'
Expand Down Expand Up @@ -163,7 +163,7 @@ jobs:

- name: Add reaction
if: steps.parse.outputs.command != 'none' && github.event_name == 'issue_comment' && steps.auth.outputs.authorized == 'true'
uses: actions/github-script@v8
uses: actions/github-script@v9
with:
script: |
await github.rest.reactions.createForIssueComment({
Expand All @@ -181,7 +181,7 @@ jobs:

steps:
- name: Show status
uses: actions/github-script@v8
uses: actions/github-script@v9
with:
script: |
const prNumber = ${{ needs.handle-command.outputs.pr_number }};
Expand Down Expand Up @@ -224,7 +224,7 @@ jobs:
steps:
- name: Get current label status
id: label_check
uses: actions/github-script@v8
uses: actions/github-script@v9
with:
script: |
const prNumber = ${{ needs.handle-command.outputs.pr_number }};
Expand All @@ -237,7 +237,7 @@ jobs:
core.setOutput('has_label', hasLabel);

- name: Add deploy label
uses: actions/github-script@v8
uses: actions/github-script@v9
with:
script: |
const prNumber = ${{ needs.handle-command.outputs.pr_number }};
Expand Down Expand Up @@ -275,7 +275,7 @@ jobs:
steps:
- name: Get current label status
id: label_check
uses: actions/github-script@v8
uses: actions/github-script@v9
with:
script: |
const prNumber = ${{ needs.handle-command.outputs.pr_number }};
Expand All @@ -288,7 +288,7 @@ jobs:
core.setOutput('has_label', hasLabel);

- name: Remove deploy label
uses: actions/github-script@v8
uses: actions/github-script@v9
with:
script: |
const prNumber = ${{ needs.handle-command.outputs.pr_number }};
Expand Down Expand Up @@ -332,7 +332,7 @@ jobs:

steps:
- name: Post starting comment
uses: actions/github-script@v8
uses: actions/github-script@v9
with:
script: |
const prNumber = ${{ needs.handle-command.outputs.pr_number }};
Expand Down Expand Up @@ -392,7 +392,7 @@ jobs:
uses: actions/deploy-pages@v4

- name: Post success comment
uses: actions/github-script@v8
uses: actions/github-script@v9
with:
script: |
const prNumber = ${{ needs.handle-command.outputs.pr_number }};
Expand All @@ -410,7 +410,7 @@ jobs:

- name: Post failure comment
if: failure()
uses: actions/github-script@v8
uses: actions/github-script@v9
with:
script: |
const prNumber = ${{ needs.handle-command.outputs.pr_number }};
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/website-deploy-on-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ jobs:
echo "- **Merged By:** ${{ github.event.pull_request.merged_by.login }}" >> $GITHUB_STEP_SUMMARY

- name: Comment on PR with success
uses: actions/github-script@v8
uses: actions/github-script@v9
with:
script: |
const prNumber = ${{ github.event.pull_request.number }};
Expand All @@ -133,7 +133,7 @@ jobs:

- name: Comment on PR with failure
if: failure()
uses: actions/github-script@v8
uses: actions/github-script@v9
with:
script: |
const prNumber = ${{ github.event.pull_request.number }};
Expand Down
Loading