mirror of
https://github.com/Mic92/nixos-wiki-infra.git
synced 2025-02-16 18:31:44 +01:00
fixup workflow permissions
This commit is contained in:
parent
c0e38cc694
commit
bcf14f983e
7
.github/workflows/update-extensions.yml
vendored
7
.github/workflows/update-extensions.yml
vendored
@ -3,7 +3,10 @@ on:
|
|||||||
repository_dispatch:
|
repository_dispatch:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
schedule:
|
schedule:
|
||||||
- cron: '51 2 * * *'
|
- cron: "51 2 * * *"
|
||||||
|
permissions:
|
||||||
|
pull-requests: write
|
||||||
|
contents: write
|
||||||
jobs:
|
jobs:
|
||||||
update-extensions:
|
update-extensions:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@ -15,6 +18,8 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
nix_path: nixpkgs=channel:nixos-unstable
|
nix_path: nixpkgs=channel:nixos-unstable
|
||||||
- run: ./modules/nixos-wiki/update-extensions.py ./modules/nixos-wiki/extensions.json
|
- run: ./modules/nixos-wiki/update-extensions.py ./modules/nixos-wiki/extensions.json
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
- name: Create Pull Request
|
- name: Create Pull Request
|
||||||
uses: peter-evans/create-pull-request@v6
|
uses: peter-evans/create-pull-request@v6
|
||||||
with:
|
with:
|
||||||
|
Loading…
Reference in New Issue
Block a user