🛠️ Standard Settings #14
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: "🛠️ Standard Settings" | |
on: | |
workflow_dispatch: | |
inputs: | |
repo: | |
description: "Repository name" | |
required: true | |
type: string | |
defaults: | |
run: | |
shell: bash | |
# env: | |
permissions: read-all | |
jobs: | |
lookup: | |
runs-on: ubuntu-latest | |
name: Apply Standard Settings (${{ inputs.repo }}) | |
permissions: | |
contents: read | |
strategy: | |
fail-fast: false | |
steps: | |
- name: Git clone | |
uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2 | |
with: | |
ref: ${{ github.base_ref }} | |
- name: Setup Go environment | |
uses: actions/[email protected] | |
with: | |
go-version: ">= 1.22.1" | |
- name: Apply | |
working-directory: ${{ github.workspace }}/scripts/standard-settings | |
env: | |
GITHUB_TOKEN: ${{ secrets.GH_PUBLIC_TOKEN }} | |
run: | | |
go run standard-settings.go --repo ${{ inputs.repo }} |