Skip to content
This repository was archived by the owner on Jul 31, 2023. It is now read-only.

kachick/action-update-dprint-plugins

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

action-update-dprint-plugins

CI

GitHub Action to update dprint plugins in dprint.json

Usage

An example workflow in your repository, assuming it is named .github/workflows/dprint-update-plugin.yml.

name: Update dprint plugins
on:
  push:
    branches: ['main']
    paths:
      - '.github/workflows/dprint-update-plugin.yml'
  schedule:
    - cron: '0 17 * * *'
  # Allows you to run this workflow manually from the Actions tab
  workflow_dispatch:

permissions:
  contents: read
  pull-requests: write

# Allow one concurrent updates
concurrency:
  group: 'dprint'
  cancel-in-progress: true

jobs:
  update:
    runs-on: ubuntu-latest
    timeout-minutes: 15
    steps:
      - uses: kachick/action-update-dprint-plugins@v0.1.0
        with:
          base-branch: 'main'
          github-token: "${{ secrets.GITHUB_TOKEN }}"
          # auto-merge: false # default: true

Parameters

All options should be specified with string. So true/false should be 'true'/'false'

name default options description
base-branch (null) e.g 'main' The branch into which you want updating PR merged
github-token (null) e.g "${{ secrets.GITHUB_TOKEN }}" The token will be used to create PR
auto-merge 'true' 'true', 'false' The updating PR will be auto merged if no change exist even after dprint fmt

Motivation

About

GitHub Action to update dprint plugins

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages