mirror of
https://github.com/Cian-H/dotfiles.git
synced 2026-05-14 10:31:54 +01:00
896af887ca
This change allows the dotfiles to work with chezmoi (e.g: on windows) and improves grepability with neovim/telescope
26 lines
537 B
YAML
26 lines
537 B
YAML
---
|
|
name: Add branch protections to all repositories
|
|
'on':
|
|
schedule:
|
|
- cron: '0 * * * *'
|
|
workflow_dispatch:
|
|
|
|
defaults:
|
|
run:
|
|
shell: nu {0}
|
|
|
|
jobs:
|
|
set-branch-restrictions:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v3
|
|
- name: Setup Nu
|
|
uses: hustcer/setup-nu@main
|
|
with:
|
|
version: '0.64.0'
|
|
- run: ./branch-protections.nu
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
OWNER: ${{ github.repository_owner }}
|