github actions
This commit is contained in:
parent
6af908902e
commit
0b2272311f
2 changed files with 41 additions and 0 deletions
10
.github/dependabot.yml
vendored
Normal file
10
.github/dependabot.yml
vendored
Normal file
|
|
@ -0,0 +1,10 @@
|
||||||
|
version: 2
|
||||||
|
updates:
|
||||||
|
- package-ecosystem: "cargo"
|
||||||
|
directory: "/generator"
|
||||||
|
schedule:
|
||||||
|
interval: "weekly"
|
||||||
|
- package-ecosystem: "github-actions"
|
||||||
|
directory: "/"
|
||||||
|
schedule:
|
||||||
|
interval: "weekly"
|
||||||
31
.github/workflows/generate.yml
vendored
Normal file
31
.github/workflows/generate.yml
vendored
Normal file
|
|
@ -0,0 +1,31 @@
|
||||||
|
name: Generate
|
||||||
|
|
||||||
|
on:
|
||||||
|
workflow_dispatch:
|
||||||
|
schedule:
|
||||||
|
# Run this workflow every week at 03:34 am
|
||||||
|
- cron: "34 3 */7 * *"
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
generate:
|
||||||
|
name: Generate plugin list
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
- name: Install Nix
|
||||||
|
uses: cachix/install-nix-action@v27
|
||||||
|
with:
|
||||||
|
nix_path: nixpkgs=channel:nixos-24.11
|
||||||
|
- name: Run generator
|
||||||
|
run: |
|
||||||
|
nix run '.#_nix-jebrains-plugins-generator' -- --output-path ./generated
|
||||||
|
- name: Create Pull Request
|
||||||
|
uses: peter-evans/create-pull-request@v7
|
||||||
|
with:
|
||||||
|
add-paths: .
|
||||||
|
title: Plugin Updates
|
||||||
|
body: Autogenerated by ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
|
||||||
|
commit-message: Plugin Updates
|
||||||
|
branch: plugin-updates
|
||||||
|
delete-branch: true
|
||||||
Loading…
Add table
Add a link
Reference in a new issue