From effb6fc22e8befe9ffeb3b3968718fe436c41065 Mon Sep 17 00:00:00 2001 From: Vladimir Jimenez Date: Wed, 13 Dec 2023 00:16:41 -0800 Subject: [PATCH] Naming updates + attempt to create PR --- ...provider-map.yml => provider-map-jobs.yml} | 31 ++++++++----------- 1 file changed, 13 insertions(+), 18 deletions(-) rename .github/workflows/{provider-map.yml => provider-map-jobs.yml} (78%) diff --git a/.github/workflows/provider-map.yml b/.github/workflows/provider-map-jobs.yml similarity index 78% rename from .github/workflows/provider-map.yml rename to .github/workflows/provider-map-jobs.yml index 9e93513a..2e7431ff 100644 --- a/.github/workflows/provider-map.yml +++ b/.github/workflows/provider-map-jobs.yml @@ -1,22 +1,21 @@ -name: Provider Map Operations +name: Provider Map Jobs on: push: branches: - vlad/provider-map-gha workflow_dispatch: schedule: - - cron: "0 0 * * *" + - cron: "0 0 0 * *" jobs: fetch_warehouse: - name: Fetch Warehouse Data + name: Fetch Warehouse Updates runs-on: ubuntu-latest steps: - name: Checkout repository uses: actions/checkout@v4 - - id: auth - name: Authenticate with Google + - name: Authenticate with Google uses: google-github-actions/auth@v1 with: credentials_json: '${{ secrets.GCP_SA_KEY }}' @@ -80,16 +79,12 @@ jobs: with open(geojson_file, 'w') as f: json.dump(geojson, f, indent=2) - - shell: bash - run: | - git add src/metadata/providers/ - git diff --cached - - # - name: Create Pull Request - # uses: peter-evans/create-pull-request@v5 - # with: - # commit-message: Automatic update provider map data - # title: Provider Map Data Auto Update - # body: | - # This is an automatic pull request to update the provider map data. - # It is triggered by a cron job that runs every day at midnight UTC. + - name: Create Pull Request + uses: peter-evans/create-pull-request@v5 + with: + commit-message: Auto-update provider data from warehouse + title: Provider Map Data Auto Update + body: | + It's that time again! The warehouse has delivered new data for us to use. + + This is an automatic pull request created by the `provider-map-jobs.yml` workflow. It is triggered by a cron job that runs every Sunday at midnight UTC.