Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/tier4/main' into sync-awf-upstream
Browse files Browse the repository at this point in the history
  • Loading branch information
takayuki5168 committed Jul 19, 2023
2 parents 6ef44e7 + f5167dd commit 1cb21fc
Show file tree
Hide file tree
Showing 78 changed files with 2,187 additions and 337 deletions.
1 change: 1 addition & 0 deletions .github/sync-files.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
- source: .github/PULL_REQUEST_TEMPLATE/small-change.md
- source: .github/PULL_REQUEST_TEMPLATE/standard-change.md
- source: .github/dependabot.yaml
- source: .github/workflows/backport.yaml
- source: .github/stale.yml
- source: .github/workflows/github-release.yaml
- source: .github/workflows/pre-commit.yaml
Expand Down
80 changes: 0 additions & 80 deletions .github/update-sync-param-files.py

This file was deleted.

33 changes: 33 additions & 0 deletions .github/workflows/backport.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: backport
on:
pull_request_target:
types:
- closed
- labeled

jobs:
backport:
runs-on: ubuntu-latest
# Only react to merged PRs for security reasons.
# See https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#pull_request_target.
if: >
github.event.pull_request.merged
&& (
github.event.action == 'closed'
|| (
github.event.action == 'labeled'
&& contains(github.event.label.name, 'backport')
)
)
steps:
- name: Generate token
id: generate-token
uses: tibdex/github-app-token@v1
with:
app_id: ${{ secrets.APP_ID }}
private_key: ${{ secrets.PRIVATE_KEY }}

- uses: tibdex/backport@v2
with:
github_token: ${{ steps.generate-token.outputs.token }}
title_template: "<%= title %> (backport #<%= number %>)"
41 changes: 0 additions & 41 deletions .github/workflows/check-build-depends.yaml

This file was deleted.

45 changes: 45 additions & 0 deletions .github/workflows/dispatch-release-note.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: dispatch-release-note
on:
push:
branches:
- beta/v*
- tier4/main
tags:
- v*
workflow_dispatch:
inputs:
beta-branch-or-tag-name:
description: The name of the beta branch or tag to write release note
type: string
required: true
jobs:
dispatch-release-note:
runs-on: ubuntu-latest
name: release-repository-dispatch
steps:
- name: Set tag name
id: set-tag-name
run: |
if [ "${{ github.event_name }}" = "workflow_dispatch" ]; then
REF_NAME="${{ github.event.inputs.beta-branch-or-tag-name }}"
else
REF_NAME="${{ github.ref_name }}"
fi
echo ::set-output name=ref-name::"'$REF_NAME'_launch"
echo ::set-output name=tag-name::"${REF_NAME#beta/}"
- name: Generate token
id: generate-token
uses: tibdex/github-app-token@v1
with:
app_id: ${{ secrets.APP_ID }}
private_key: ${{ secrets.PRIVATE_KEY }}

- name: Repository dispatch for release note
run: |
curl \
-X POST \
-H "Accept: application/vnd.github+json" \
-H "Authorization: token ${{ steps.generate-token.outputs.token }}" \
-H "X-GitHub-Api-Version: 2022-11-28" \
"https://api.github.com/repos/tier4/update-release-notes/dispatches" \
-d '{"event_type":"${{ steps.set-tag-name.outputs.ref-name }}"}'
31 changes: 31 additions & 0 deletions .github/workflows/sync-awf-latest-s1.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: sync-awf-latest-s1

on:
schedule:
- cron: 0 0 * * *
workflow_dispatch:

jobs:
sync-awf-latest-s1:
runs-on: ubuntu-latest
steps:
- name: Generate token
id: generate-token
uses: tibdex/github-app-token@v1
with:
app_id: ${{ secrets.APP_ID }}
private_key: ${{ secrets.PRIVATE_KEY }}

- name: Run sync-branches
uses: autowarefoundation/autoware-github-actions/sync-branches@v1
with:
token: ${{ steps.generate-token.outputs.token }}
base-branch: awf-latest-s1
sync-pr-branch: sync-awf-latest-s1
sync-target-repository: https://github.com/autowarefoundation/autoware_launch.git
sync-target-branch: main
pr-title: "chore: sync awf-latest-s1"
pr-labels: |
bot
sync-awf-latest-s1
auto-merge-method: merge
31 changes: 31 additions & 0 deletions .github/workflows/sync-awf-latest-x1.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: sync-awf-latest-x1

on:
schedule:
- cron: 0 0 * * *
workflow_dispatch:

jobs:
sync-awf-latest-x1:
runs-on: ubuntu-latest
steps:
- name: Generate token
id: generate-token
uses: tibdex/github-app-token@v1
with:
app_id: ${{ secrets.APP_ID }}
private_key: ${{ secrets.PRIVATE_KEY }}

- name: Run sync-branches
uses: autowarefoundation/autoware-github-actions/sync-branches@v1
with:
token: ${{ steps.generate-token.outputs.token }}
base-branch: awf-latest-x1
sync-pr-branch: sync-awf-latest-x1
sync-target-repository: https://github.com/autowarefoundation/autoware_launch.git
sync-target-branch: main
pr-title: "chore: sync awf-latest-x1"
pr-labels: |
bot
sync-awf-latest-x1
auto-merge-method: merge
31 changes: 31 additions & 0 deletions .github/workflows/sync-awf-latest-x2.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: sync-awf-latest-x2

on:
schedule:
- cron: 0 0 * * *
workflow_dispatch:

jobs:
sync-awf-latest-x2:
runs-on: ubuntu-latest
steps:
- name: Generate token
id: generate-token
uses: tibdex/github-app-token@v1
with:
app_id: ${{ secrets.APP_ID }}
private_key: ${{ secrets.PRIVATE_KEY }}

- name: Run sync-branches
uses: autowarefoundation/autoware-github-actions/sync-branches@v1
with:
token: ${{ steps.generate-token.outputs.token }}
base-branch: awf-latest-x2
sync-pr-branch: sync-awf-latest-x2
sync-target-repository: https://github.com/autowarefoundation/autoware_launch.git
sync-target-branch: main
pr-title: "chore: sync awf-latest-x2"
pr-labels: |
bot
sync-awf-latest-x2
auto-merge-method: merge
31 changes: 31 additions & 0 deletions .github/workflows/sync-awf-latest-xx1.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: sync-awf-latest-xx1

on:
schedule:
- cron: 0 0 * * *
workflow_dispatch:

jobs:
sync-awf-latest-xx1:
runs-on: ubuntu-latest
steps:
- name: Generate token
id: generate-token
uses: tibdex/github-app-token@v1
with:
app_id: ${{ secrets.APP_ID }}
private_key: ${{ secrets.PRIVATE_KEY }}

- name: Run sync-branches
uses: autowarefoundation/autoware-github-actions/sync-branches@v1
with:
token: ${{ steps.generate-token.outputs.token }}
base-branch: awf-latest-xx1
sync-pr-branch: sync-awf-latest-xx1
sync-target-repository: https://github.com/autowarefoundation/autoware_launch.git
sync-target-branch: main
pr-title: "chore: sync awf-latest-xx1"
pr-labels: |
bot
sync-awf-latest-xx1
auto-merge-method: merge
31 changes: 31 additions & 0 deletions .github/workflows/sync-awf-upstream.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: sync-awf-upstream

on:
schedule:
- cron: 0 0 * * *
workflow_dispatch:

jobs:
sync-awf-upstream:
runs-on: ubuntu-latest
steps:
- name: Generate token
id: generate-token
uses: tibdex/github-app-token@v1
with:
app_id: ${{ secrets.APP_ID }}
private_key: ${{ secrets.PRIVATE_KEY }}

- name: Run sync-branches
uses: autowarefoundation/autoware-github-actions/sync-branches@v1
with:
token: ${{ steps.generate-token.outputs.token }}
base-branch: tier4/main
sync-pr-branch: sync-awf-upstream
sync-target-repository: https://github.com/autowarefoundation/autoware_launch.git
sync-target-branch: main
pr-title: "chore: sync awf/autoware_launch"
pr-labels: |
bot
sync-awf-upstream
auto-merge-method: merge
Loading

0 comments on commit 1cb21fc

Please sign in to comment.