Skip to content

Resources

Resources #82

Workflow file for this run

name: 'Resources'
on:
schedule:
- cron: '0 18 * * 5'
workflow_dispatch:
permissions: read-all
jobs:
build:
permissions: write-all
runs-on: ubuntu-latest
steps:
- name: Install Go
uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2
with:
go-version: ${{ matrix.go-version }}
## checks out our code locally, so we can work with the files
- name: Checkout code
uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1
## runs go test ./...
- name: Build
run: go build -o ${{ github.workspace }} ./...
- name: Checkout AWS
uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1
with:
repository: hashicorp/terraform-provider-aws
path: aws
- name: Parse Azurerm
run: ${{ github.workspace }}/pike parse -d ${{ github.workspace }}/aws -name aws
- name: Checkout AZURERM
uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1
with:
repository: hashicorp/terraform-provider-azurerm
path: azurerm
- name: Parse Azurerm
run: ${{ github.workspace }}/pike parse -d ${{ github.workspace }}/azurerm -name azurerm
- name: Generate Google
uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1
with:
repository: hashicorp/terraform-provider-google
path: google
- name: Parse Google
run: ${{ github.workspace }}/pike parse -d ${{ github.workspace }}/google -name google
- name: copy
run: cp ${{ github.workspace }}/*.json ${{ github.workspace }}/src/parse/
- name: setup git config
run: |
# setup the username and email. I tend to use 'GitHub Actions Bot' with no email by default
git config user.name "GitHub Actions Bot"
git config user.email "jim.wolf@duck.com"
- name: commit
run: |
# Stage the file, commit and push
mv *-members.json src/parse
git add src/parse/*-members.json --ignore-errors
git commit -m "updated resources" --allow-empty
git push origin master