Skip to content

Commit

Permalink
chore: Support forced integration update.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason3S committed Jan 29, 2025
1 parent fe53ae2 commit 6c75146
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/update-dictionaries.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,12 @@ on:
base:
description: The Base Ref to apply the diff
required: false
default: 'main'
default: main
force:
description: Force the update of integration snapshots even if the dictionaries are not updated.
required: false
default: false
type: boolean

schedule:
- cron: '0 7 * * *'
Expand All @@ -17,6 +22,7 @@ permissions:
env:
NEW_BRANCH: "update-dictionaries-${{ inputs.base || 'main' }}"
REF_BRANCH: ${{ inputs.base || 'main' }}
NODE_VERSION: '22.x'

jobs:
calc-ref:
Expand Down Expand Up @@ -119,7 +125,7 @@ jobs:
patch: ${{ needs.check-dictionaries.outputs.patch }}

integrations:
if: ${{ needs.check-dictionaries.outputs.patch }}
if: ${{ inputs.force || needs.check-dictionaries.outputs.patch }}
runs-on: ubuntu-latest
needs:
- load-integrations
Expand Down Expand Up @@ -158,6 +164,7 @@ jobs:
run: corepack enable

- name: Patch
if: ${{ env.PATCH }}
run: |
echo "$PATCH" | git apply
Expand Down

0 comments on commit 6c75146

Please sign in to comment.