Skip to content

Resources

Resources #85

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@41dfa10bad2bb2ae585af6ee5bb4d7d973ad74ed # v5.1.0
with:
go-version: ${{ matrix.go-version }}
## checks out our code locally, so we can work with the files
- name: Checkout code
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
## runs go test ./...
- name: Build
run: go build -o ${{ github.workspace }} ./...
- name: Checkout AWS
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
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@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
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@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
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