-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
06eaf89
commit 95fd5ed
Showing
4 changed files
with
104 additions
and
55 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
name: Create pull request in remote repository | ||
on: | ||
workflow_call: | ||
inputs: | ||
repository: | ||
required: true | ||
type: string | ||
commit: | ||
required: true | ||
type: string | ||
assignee: | ||
required: true | ||
type: string | ||
setup-action: | ||
type: string | ||
secrets: | ||
AUTOMATION_APP_ID: | ||
required: true | ||
AUTOMATION_APP_PRIVATE_KEY: | ||
required: true | ||
|
||
jobs: | ||
workflow_call: | ||
name: Create or update PR | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
repository: OpenSlides/${{ inputs.repository }} | ||
fetch-depth: 0 | ||
submodules: true | ||
|
||
- name: Checkout meta repository commit | ||
working-directory: .git/modules/openslides-meta/ | ||
run: git fetch origin && git checkout ${{ inputs.commit }} | ||
|
||
- name: Update repository files | ||
if: inputs.setup-action != '' | ||
uses: jenseng/dynamic-uses@v1 | ||
with: | ||
uses: ./.github/actions/${{ inputs.setup-action }} | ||
|
||
- name: Generate access token | ||
uses: tibdex/github-app-token@v2 | ||
id: generate-token | ||
with: | ||
app_id: ${{ secrets.AUTOMATION_APP_ID }} | ||
private_key: ${{ secrets.AUTOMATION_APP_PRIVATE_KEY }} | ||
|
||
- name: Create or update PR | ||
uses: peter-evans/create-pull-request@v6 | ||
with: | ||
token: ${{ steps.generate-token.outputs.token }} | ||
commit-message: Update meta repository | ||
branch: dep/update-meta-repo | ||
delete-branch: true | ||
title: Update meta repository | ||
body: "Triggered by commit [${{ inputs.commit }}](https://github.com/OpenSlides/openslides-meta/commit/${{ inputs.commit }})" | ||
reviewers: ${{ inputs.assignee }} | ||
assignees: ${{ inputs.assignee }} | ||
labels: dependencies | ||
milestone: 4 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
--- | ||
name: Create PRs on each update | ||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
create-pull-requests: | ||
name: Create PR for autoupdate service | ||
if: github.repository_owner == 'OpenSlides' | ||
uses: ./.github/workflows/create-pr.yml | ||
with: | ||
repository: ${{ matrix.repository }} | ||
commit: ${{ github.sha }} | ||
assignee: ${{ matrix.assignee }} | ||
setup-action: ${{ matrix.setup-action }} | ||
secrets: inherit | ||
strategy: | ||
matrix: | ||
include: | ||
- repository: openslides-autoupdate-service | ||
assignee: ostcar | ||
setup-action: setup-autoupdate-pr | ||
- repository: openslides-backend | ||
assignee: jsangmeister | ||
- repository: openslides-client | ||
assignee: bastianjoel | ||
- repository: openslides-search-service | ||
assignee: bastianjoel |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
name: Prepare meta update PR in autoupdate repo | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Set up go | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version: '1.22' | ||
|
||
- name: Run go generate | ||
run: go generate ./... |