Skip to content

Update local data

Update local data #26

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@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4.0.3
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@c5a7806660adbe173f04e3e038b0ccdcd758773c # v6.1.0
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