Skip to content

Commit

Permalink
ci(workflows): simplify CI and add Update Repo Settings (#151)
Browse files Browse the repository at this point in the history
  • Loading branch information
marcusrbrown committed Mar 18, 2024
1 parent 71fa920 commit e3b09fa
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 2 deletions.
18 changes: 18 additions & 0 deletions .github/settings.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
_extends: .github:common-settings.yaml

repository:
name: works
description: '@bfra-me tools and components'
topics: works, bfra-me, tools, components, tsconfig, semantic-release

branches:
- name: main
protection:
required_status_checks:
strict: true
contexts: ['Test', 'Renovate / Renovate']
enforce_admins: true
required_pull_request_reviews: null
restrictions: null
required_linear_history: true
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ name: CI
'on':
merge_group:
push:
branches: [main, 'renovate/**']
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
workflow_dispatch:
Expand Down Expand Up @@ -64,6 +63,7 @@ jobs:
application_id: ${{ secrets.APPLICATION_ID }}
application_private_key: ${{ secrets.APPLICATION_PRIVATE_KEY }}
permissions: 'contents:write, issues:write, pull_requests:write'
revoke_token: true
- name: Setup Git user
run: |
git config --global user.email '118100583+bfra-me[bot]@users.noreply.github.com'
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/renovate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,15 @@ name: Renovate
required: false
type: boolean
default: false
workflow_run:
workflows: ['CI']
branches: ['renovate/**']
types: [completed]

jobs:
renovate:
name: Renovate
secrets: inherit
uses: bfra-me/.github/.github/workflows/renovate.yaml@v1.8.2
uses: bfra-me/.github/.github/workflows/renovate.yaml@v1
with:
print_config: ${{ inputs.print_config || false }}
16 changes: 16 additions & 0 deletions .github/workflows/update-repo-settings.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Update repository settings to match the definitions in .github/settings.yml.
---
name: Update Repo Settings

'on':
push:
branches: [main]
schedule:
- cron: '02 18 * * *' # 18:02 UTC = 11:02 AM PST
workflow_dispatch:

jobs:
update-repo-settings:
name: Update Repo Settings
secrets: inherit
uses: bfra-me/.github/.github/workflows/update-repo-settings.yaml@v1

0 comments on commit e3b09fa

Please sign in to comment.