Skip to content

Commit

Permalink
ci: create PR for index.yaml
Browse files Browse the repository at this point in the history
Signed-off-by: knqyf263 <[email protected]>
  • Loading branch information
knqyf263 committed May 14, 2024
1 parent 7f5002a commit 417d7c5
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/generate-index.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Update index

on:
push:
branches: [ "main" ]
workflow_dispatch:
schedule:
- cron: '0 0 * * *' # Run every day at midnight

permissions:
contents: write
pull-requests: write

jobs:
update:
name: Update
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: 'go.mod'
- name: Fetch plugin manifests and generate a list of plugins
run: go run cmd/crawler/main.go site/data/index.yaml
- name: Create Pull Request
uses: peter-evans/create-pull-request@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
commit-message: Update index.yaml
title: Update index.yaml
body: |
This PR updates the index.yaml file.
reviewers: |
knqyf263
DmitriyLewenkk
add-paths: |
site/data/index.yaml

0 comments on commit 417d7c5

Please sign in to comment.