Sync of all_metadata.json #6
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Sync of all_metadata.json | |
| permissions: | |
| contents: write | |
| pull-requests: write | |
| on: | |
| schedule: | |
| - cron: '0 5 * * *' | |
| workflow_dispatch: | |
| jobs: | |
| nightly-sync: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout destination repo | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Checkout source repo | |
| uses: actions/checkout@v4 | |
| with: | |
| repository: 'AMES-DLAB/data_lake' | |
| path: source-repo | |
| fetch-depth: 1 | |
| - name: Copy metadata file | |
| run: | | |
| cp source-repo/all_metadata.json all_metadata.json | |
| - name: Create Pull Request | |
| id: cpr | |
| uses: peter-evans/create-pull-request@v7 | |
| with: | |
| branch: sync-all-metadata | |
| title: "Nightly Sync: all_metadata.json" | |
| body: "Automated pull request syncing metadata from source repo" |