mirror of
https://github.com/ChrisTitusTech/linutil.git
synced 2024-11-24 06:01:55 +00:00
fix doc privs for pushing new prs to docs
This commit is contained in:
parent
00d321d75e
commit
58f3433de6
18
.github/workflows/github-pages.yml
vendored
18
.github/workflows/github-pages.yml
vendored
|
@ -13,6 +13,10 @@ on:
|
||||||
jobs:
|
jobs:
|
||||||
build-and-deploy:
|
build-and-deploy:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
environment: linutil_env
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
|
pull-requests: write
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout Repository
|
- name: Checkout Repository
|
||||||
|
@ -24,11 +28,17 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
echo -e "<!-- THIS FILE IS GENERATED AUTOMATICALLY. EDIT .github/CONTRIBUTING.md -->\n\n$(cat .github/CONTRIBUTING.md)" > 'docs/contributing.md'
|
echo -e "<!-- THIS FILE IS GENERATED AUTOMATICALLY. EDIT .github/CONTRIBUTING.md -->\n\n$(cat .github/CONTRIBUTING.md)" > 'docs/contributing.md'
|
||||||
|
|
||||||
- uses: stefanzweifel/git-auto-commit-action@v5
|
- name: Create Pull Request
|
||||||
|
uses: peter-evans/create-pull-request@v6
|
||||||
with:
|
with:
|
||||||
commit_message: Commit Contributing Guidelines
|
commit-message: Update Contributing Guidelines
|
||||||
file_pattern: "docs/contributing.md"
|
title: 'docs: Update Contributing Guidelines'
|
||||||
add_options: '--force'
|
body: 'Automated update of Contributing Guidelines from .github/CONTRIBUTING.md'
|
||||||
|
branch: update-contributing-guidelines
|
||||||
|
delete-branch: true
|
||||||
|
base: main
|
||||||
|
labels: documentation
|
||||||
|
token: ${{ secrets.PAT_TOKEN }}
|
||||||
if: success()
|
if: success()
|
||||||
|
|
||||||
- name: Setup Python
|
- name: Setup Python
|
||||||
|
|
Loading…
Reference in New Issue
Block a user