Update EOPA caps #39
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 EOPA caps" | |
on: | |
schedule: | |
- cron: "0 0 * * *" | |
workflow_dispatch: | |
permissions: | |
contents: write | |
pull-requests: write | |
jobs: | |
fetch: | |
name: Fetch EOPA caps | |
runs-on: ubuntu-latest | |
env: | |
RQ_VERSION: v0.0.9 | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
- uses: actions/setup-go@41dfa10bad2bb2ae585af6ee5bb4d7d973ad74ed # v5.1.0 | |
with: | |
go-version-file: go.mod | |
- name: Restore rq cache | |
id: cache-rq | |
uses: actions/cache@6849a6489940f00c2f30c0fb92c6274307ccb58a # v4.1.2 | |
with: | |
path: ~/go/bin/rq | |
key: ${{ runner.os }}-${{ runner.arch }}-go-rq-${{ env.RQ_VERSION }} | |
- run: go install git.sr.ht/~charles/rq/cmd/rq@${{ env.RQ_VERSION }} | |
if: steps.cache-rq.outputs.cache-hit != 'true' | |
- name: Cache rq binary | |
if: steps.cache-rq.outputs.cache-hit != 'true' | |
uses: actions/cache@6849a6489940f00c2f30c0fb92c6274307ccb58a # v4.1.2 | |
with: | |
path: ~/go/bin/rq | |
key: ${{ runner.os }}-${{ runner.arch }}-go-rq-${{ env.RQ_VERSION }} | |
- run: build/do.rq fetch | |
- name: Create Pull Request | |
uses: peter-evans/create-pull-request@5e914681df9dc83aa4e4905692ca88beb2f9e91f # v7.0.5 | |
with: | |
title: "automated: update capabilities" | |
branch: create-pull-request/caps | |
add-paths: | | |
internal/capabilities/embedded/eopa/*.json |