Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci(workflows): simplify CI and add Update Repo Settings #151

Merged
merged 1 commit into from
Mar 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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