-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: templates generated by RadxaOS-SDK/rsdk@bdc7363
- Loading branch information
1 parent
5d79e38
commit 64090f5
Showing
11 changed files
with
869 additions
and
142 deletions.
There are no files selected for viewing
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,7 @@ | ||
# Catch-all code owner | ||
* @RadxaYuntian | ||
|
||
# Disown CI yaml so automerge can work | ||
# https://github.com/orgs/community/discussions/23064#discussioncomment-8383923 | ||
.github/actions/**/*.yaml | ||
.github/workflows/*.yaml |
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,6 @@ | ||
updates: | ||
- directory: "/" | ||
package-ecosystem: "github-actions" | ||
schedule: | ||
interval: "daily" | ||
version: 2 |
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,66 @@ | ||
env: | ||
GH_TOKEN: "${{ github.token }}" | ||
jobs: | ||
build: | ||
needs: "prepare_release" | ||
runs-on: "ubuntu-latest" | ||
steps: | ||
- name: "Checkout" | ||
uses: "actions/checkout@v4" | ||
- name: "Build image" | ||
uses: "RadxaOS-SDK/rsdk/.github/actions/build@main" | ||
with: | ||
edition: "${{ matrix.edition }}" | ||
github-token: "${{ secrets.GITHUB_TOKEN }}" | ||
product: "${{ matrix.product }}" | ||
release-id: "${{ needs.prepare_release.outputs.release_id }}" | ||
suite: "${{ matrix.suite }}" | ||
strategy: | ||
matrix: | ||
edition: "${{ fromJSON(needs.prepare_release.outputs.editions )}}" | ||
product: | ||
- "radxa-nx5-io" | ||
suite: "${{ fromJSON(needs.prepare_release.outputs.suites )}}" | ||
prepare_release: | ||
outputs: | ||
editions: "${{ steps.query.outputs.editions }}" | ||
release_id: "${{ steps.release.outputs.id }}" | ||
suites: "${{ steps.query.outputs.suites }}" | ||
runs-on: "ubuntu-latest" | ||
steps: | ||
- name: "Checkout" | ||
uses: "actions/checkout@v4" | ||
with: | ||
fetch-depth: 0 | ||
fetch-tags: true | ||
- name: "Check for existing releases" | ||
run: | | ||
TAG="rsdk-b${{ github.run_number }}" | ||
if git show-ref --tags --verify --quiet "refs/tags/${TAG}"; then | ||
echo "Release ${TAG} exists." | ||
exit 1 | ||
fi | ||
- name: "Generate changelog" | ||
uses: "radxa-repo/rbuild-changelog@main" | ||
with: | ||
product: "radxa-nx5-io" | ||
- id: "query" | ||
name: "Query product info" | ||
uses: "RadxaOS-SDK/rsdk/.github/actions/query@main" | ||
with: | ||
product: "radxa-nx5-io" | ||
- id: "release" | ||
name: "Create empty release" | ||
uses: "softprops/action-gh-release@v2" | ||
with: | ||
body_path: "README.md" | ||
draft: false | ||
files: ".changelog/changelog.md" | ||
name: "b${{ github.run_number }} (rsdk)" | ||
prerelease: true | ||
tag_name: "rsdk-b${{ github.run_number }}" | ||
target_commitish: "main" | ||
token: "${{ secrets.GITHUB_TOKEN }}" | ||
name: "Build image for release channel" | ||
"on": | ||
workflow_dispatch: {} |
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,17 @@ | ||
jobs: | ||
check_pull_requests: | ||
name: "Check linked issues" | ||
permissions: | ||
issues: "write" | ||
pull-requests: "write" | ||
runs-on: "ubuntu-latest" | ||
steps: | ||
- name: "Check linked issues" | ||
uses: "nearform-actions/github-action-check-linked-issues@v1" | ||
name: "Check linked issues" | ||
"on": | ||
pull_request_target: | ||
types: | ||
- "opened" | ||
- "reopened" | ||
permissions: {} |
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,23 @@ | ||
jobs: | ||
dependabot: | ||
if: "github.actor == 'dependabot[bot]'" | ||
runs-on: "ubuntu-latest" | ||
steps: | ||
- id: "metadata" | ||
name: "Dependabot metadata" | ||
uses: "dependabot/fetch-metadata@v2" | ||
with: | ||
github-token: "${{ secrets.GITHUB_TOKEN }}" | ||
- env: | ||
GH_TOKEN: "${{secrets.GITHUB_TOKEN}}" | ||
PR_URL: "${{github.event.pull_request.html_url}}" | ||
name: "Approve a PR & Enable auto-merge for Dependabot PRs" | ||
run: | | ||
gh pr review --approve "$PR_URL" | ||
gh pr merge --auto --merge "$PR_URL" | ||
name: "Dependabot auto-merge" | ||
"on": | ||
pull_request: {} | ||
permissions: | ||
contents: "write" | ||
pull-requests: "write" |
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,71 @@ | ||
env: | ||
GH_TOKEN: "${{ github.token }}" | ||
jobs: | ||
build: | ||
needs: "prepare_release" | ||
runs-on: "ubuntu-latest" | ||
steps: | ||
- name: "Checkout" | ||
uses: "actions/checkout@v4" | ||
- name: "Build image" | ||
uses: "RadxaOS-SDK/rsdk/.github/actions/build@main" | ||
with: | ||
edition: "${{ matrix.edition }}" | ||
github-token: "${{ secrets.GITHUB_TOKEN }}" | ||
product: "${{ matrix.product }}" | ||
release-id: "${{ needs.prepare_release.outputs.release_id }}" | ||
suite: "${{ matrix.suite }}" | ||
tag_name: "rsdk-t${{ github.run_number }}" | ||
test-repo: true | ||
timestamp: "t${{ github.run_number }}" | ||
strategy: | ||
matrix: | ||
edition: "${{ fromJSON(needs.prepare_release.outputs.editions )}}" | ||
product: | ||
- "radxa-nx5-io" | ||
suite: "${{ fromJSON(needs.prepare_release.outputs.suites )}}" | ||
prepare_release: | ||
outputs: | ||
editions: "${{ steps.query.outputs.editions }}" | ||
release_id: "${{ steps.release.outputs.id }}" | ||
suites: "${{ steps.query.outputs.suites }}" | ||
runs-on: "ubuntu-latest" | ||
steps: | ||
- name: "Checkout" | ||
uses: "actions/checkout@v4" | ||
with: | ||
fetch-depth: 0 | ||
fetch-tags: true | ||
- name: "Check for existing releases" | ||
run: | | ||
TAG="rsdk-t${{ github.run_number }}" | ||
if git show-ref --tags --verify --quiet "refs/tags/${TAG}"; then | ||
echo "Release ${TAG} exists." | ||
exit 1 | ||
fi | ||
- name: "Generate changelog" | ||
uses: "radxa-repo/rbuild-changelog@main" | ||
with: | ||
product: "radxa-nx5-io" | ||
- id: "query" | ||
name: "Query product info" | ||
uses: "RadxaOS-SDK/rsdk/.github/actions/query@main" | ||
with: | ||
product: "radxa-nx5-io" | ||
- id: "release" | ||
name: "Create empty release" | ||
uses: "softprops/action-gh-release@v2" | ||
with: | ||
body: | | ||
This is a test build for internal development. | ||
Only use when specifically instructed by Radxa support. | ||
draft: false | ||
files: ".changelog/changelog.md" | ||
name: "t${{ github.run_number }} (rsdk)" | ||
prerelease: true | ||
tag_name: "rsdk-t${{ github.run_number }}" | ||
target_commitish: "main" | ||
token: "${{ secrets.GITHUB_TOKEN }}" | ||
name: "Build image for test channel" | ||
"on": | ||
workflow_dispatch: {} |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.