Skip to content

Commit

Permalink
build: add patch code of conduct workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
anonrig committed Apr 3, 2023
1 parent 021e0cc commit 9d8ed90
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/patch-code-of-conduct.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Patch CoC
on:
workflow_dispatch:
push:
branches:
- main
schedule:
- cron: '0 0 * * *'
jobs:
patch:
runs-on: ubuntu-latest
name: Patch
steps:
- name: Checkout
uses: actions/checkout@v3
with:
persist-credentials: false
- name: Patch CoC
uses: pkgjs/[email protected]
with:
base_url: '../../conduct/artifacts/CODE_OF_CONDUCT_PATCH.patch'
template_url: 'https://www.contributor-covenant.org/version/2/1/code_of_conduct/code_of_conduct.md'
patch_file_path: './conduct/artifacts/CODE_OF_CONDUCT_PATCH.patch'
output_file_path: './CODE_OF_CONDUCT.md'
- uses: gr2m/create-or-update-pull-request-action@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
body: "Applied the patch to the base Code of Conduct."
commit-message: 'doc: update Code of Conduct'
title: 'doc: update Code of Conduct'

0 comments on commit 9d8ed90

Please sign in to comment.