Skip to content

Update local data

Update local data #28

Workflow file for this run

name: Update local data
on:
schedule:
- cron: '39 21 * * 0'
workflow_dispatch: {}
concurrency: ${{ github.workflow }}-${{ github.ref }}
env:
GIT_REF: ${{ github.ref }}
GIT_REPO: ${{ github.repository }}
jobs:
update-data:
runs-on: ubuntu-latest
permissions:
contents: read
issues: read
pull-requests: read
actions: read
checks: read
statuses: read
steps:
- name: Checkout
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
with:
ref: ${{ env.GIT_REF }}
repository: ${{ env.GIT_REPO }}
- name: Setup Node.js
uses: actions/setup-node@0a44ba7841725637a19e28fa30b79a866c81b0a6 # v4.0.4
with:
node-version: 18
- name: Install dependencies
run: |
yarn install --frozen-lockfile
- name: Grab data updates
run: node ./scripts/collect-status.js
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Create pull request
uses: peter-evans/create-pull-request@5e914681df9dc83aa4e4905692ca88beb2f9e91f # v7.0.5
with:
base: main
branch: auto/weekly-data-update
commit-message: "chore: update local data"
title: "chore: update local data"
body: |-
This PR updates the data in the repo. This helps to ensure that if you're checking out the repo to e.g. do local development, you're working from a relatively up-to-date data snapshot.
labels: automerge,auto-approve
token: ${{ secrets.GH_WORKFLOW_TOKEN }}
author: team-tf-cdk <github-team-tf-cdk@hashicorp.com>
committer: team-tf-cdk <github-team-tf-cdk@hashicorp.com>
signoff: true
delete-branch: true