Skip to content

Commit

Permalink
Merge branch 'master' into changelog-2023-12-04
Browse files Browse the repository at this point in the history
  • Loading branch information
Lucie Milan committed Dec 6, 2023
2 parents 6f0ed45 + 2343641 commit b88675a
Show file tree
Hide file tree
Showing 5,076 changed files with 752,050 additions and 31,107 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
7 changes: 4 additions & 3 deletions .github/workflows/generate_foreign_keys.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ on:
push:
paths:
- '**-foreign-keys.yml'
branches:
- '!master'
branches-ignore:
- 'master'

jobs:
generate-foreign-keys:
Expand All @@ -23,6 +23,7 @@ jobs:
with:
packages: |
pyyaml
pandas
- name: Generate foreign keys
run: python generate_foreign_keys.py
Expand All @@ -38,5 +39,5 @@ jobs:
git add -A
git config --global user.email "[email protected]"
git config --global user.name 'github-actions'
git commit -am "Automated commit: Generate JSON schemas"
git commit -am "Automated commit: Generate foreign keys"
git push
8 changes: 4 additions & 4 deletions .github/workflows/get_json_schema_from_catalog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ on:
required: true

jobs:
generate-changelog:
get-json-schemas:
runs-on: ubuntu-latest
steps:
- name: Get current date
Expand All @@ -51,7 +51,7 @@ jobs:
pyyaml
- name: Get JSON files
run: python manual_json_import.py ${{ secrets.GITHUB_TOKEN }} ${{ github.event.inputs.tap }} ${{ github.event.inputs.version }} ${{ github.event.inputs.file }}
run: python manual_json_import.py ${{ github.event.inputs.tap }} ${{ github.event.inputs.version }} ${{ github.event.inputs.file }}
working-directory: ./scripts/json

- name: Check for changes
Expand All @@ -74,11 +74,11 @@ jobs:
branch: ${{ github.event.inputs.branch }}

- name: Create pull request
if: steps.get_changes.outputs.changed != 0 && ${{ github.event.inputs.pr }} == true
if: steps.get_changes.outputs.changed != 0 && github.event.inputs.pr == 'true'
uses: repo-sync/pull-request@v2
with:
source_branch: ${{ github.event.inputs.branch }}
destination_branch: "master"
destination_branch: "TDL-23186-json-schema"
github_token: ${{ secrets.GITHUB_TOKEN }}
pr_label: "json-schemas-update"
pr_title: ${{ github.event.inputs.tap }} JSON schema updates ${{ env.date }}
Expand Down
9 changes: 5 additions & 4 deletions .github/workflows/import_json_schemas.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ on:
required: false

jobs:
generate-changelog:
import-schemas:
runs-on: ubuntu-latest
steps:
- name: Get current date
Expand All @@ -28,7 +28,7 @@ jobs:
run: |
git config --global user.email "[email protected]"
git fetch
git checkout TDL-23186-json-schema
git checkout master
git branch ${{ env.branch }}
- name: Checkout branch
Expand All @@ -47,6 +47,7 @@ jobs:
with:
packages: |
requests
pyyaml
- name: Get JSON files
run: python get_json_files.py ${{ secrets.GITHUB_TOKEN }} ${{ github.event.inputs.repo }} ${{ github.event.inputs.branch }}
Expand All @@ -62,7 +63,7 @@ jobs:
git add -A
git config --global user.email "[email protected]"
git config --global user.name 'github-actions'
git commit -am "Automated commit: Add JSON schemas"
git commit -am "Automated commit: Import JSON schemas"
- name: Push changes
if: steps.get_changes.outputs.changed != 0
Expand All @@ -76,7 +77,7 @@ jobs:
uses: repo-sync/pull-request@v2
with:
source_branch: ${{ env.branch }}
destination_branch: "master"
destination_branch: "TDL-23186-json-schema"
github_token: ${{ secrets.GITHUB_TOKEN }}
pr_label: "json-schemas-update"
pr_title: ${{ github.event.inputs.repo }} JSON schema updates ${{ env.date }}
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,5 @@ Thumbs.db
*~
*.scssc
.cache_ggshield
__pycache__
*.pyc
Loading

0 comments on commit b88675a

Please sign in to comment.