Update local data #17
This file contains 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: 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@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6 | |
with: | |
ref: ${{ env.GIT_REF }} | |
repository: ${{ env.GIT_REPO }} | |
- name: Setup Node.js | |
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2 | |
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@6d6857d36972b65feb161a90e484f2984215f83e # v6.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 |