Skip to content
This repository was archived by the owner on Dec 26, 2025. It is now read-only.
Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Repository files navigation

Archived because there are now much better ways to set and enforce repository configuration:

  1. GitHub Safe-Settings - Recommended for configuring repository settings organization-wide
  2. GitHub Repository Rulesets - Native solution for branch protections, either organization-wide or on particular repositories.

actions-settings

GitHub Action to run Probot settings to set repository defaults.

This action simply runs probot-settings, which can be used to set up labels, branch protection rules -- pretty much anything on the repository settings tab. Settings are read from a yaml file in the repository.

Example Use

Example probot-settings.yml file:

name: Enforce repository settingson: [push]jobs:
probot-settings:
runs-on: ubuntu-lateststeps:
- uses: actions/checkout@v2
- name: Run probot-settingsuses: elstudio/actions-settings@v2env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

A fancer example

Let's say you run probot-settings just one time. (Which is useful if you're setting up labels when a repository is first created.)

Fancier example probot-settings.yml file:

name: Enforce repository settings just onceon: [push]jobs:
probot-settings:
runs-on: ubuntu-lateststeps:
- uses: actions/checkout@v2
- name: Run probot-settingsuses: elstudio/actions-settings@v2env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Remove workflow file from master branchrun: rm ./.github/workflows/probot-settings.ymlif: endsWith(github.ref, '/master') && ! endsWith(github.repository, '-template')
- name: Commit changesuses: elstudio/actions-js-build/commit@v3env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

About

GitHub Actions to run Probot settings and set defaults

Topics

Resources

Stars

19 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages