-
-
Notifications
You must be signed in to change notification settings - Fork 936
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into modules/moooooooore-modules
- Loading branch information
Showing
72 changed files
with
7,492 additions
and
4,672 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,20 @@ | ||
name: Artifact links comments creator | ||
on: | ||
workflow_run: | ||
workflows: ["PR"] | ||
types: [completed] | ||
|
||
jobs: | ||
artifacts-url-comments: | ||
name: Add artifact links to PR and issues | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- name: Add artifact links to PR and issues | ||
uses: tonyhallett/artifacts-url-comments@v1.1.0 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
prefix: "Do you want to test this code? Here you have an automated build:" | ||
suffix: "WARNING: It may be unstable and result in corrupted configurations or data loss. Use only for testing!" | ||
format: name | ||
addTo: pullandissues |
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,41 @@ | ||
## This is triggered by the publishing of a release, and will build the assets and attach them. | ||
|
||
name: On Release | ||
|
||
on: | ||
release: | ||
types: [published] | ||
|
||
jobs: | ||
ci: | ||
name: CI | ||
uses: ./.github/workflows/ci.yml | ||
with: | ||
debug_build: false | ||
|
||
release: | ||
name: Attach Release Artifacts | ||
needs: ci | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- name: Code Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: Fetch build artifacts | ||
uses: actions/download-artifact@v2 | ||
|
||
- name: List assets | ||
run: ls -al Betaflight-*/* | ||
|
||
- name: Attach assets to release | ||
run: | | ||
set -x | ||
assets=() | ||
for asset in Betaflight-*/*; do | ||
assets+=("-a" "$asset") | ||
echo "$asset" | ||
done | ||
tag_name="${GITHUB_REF##*/}" | ||
hub release edit "${assets[@]}" -m "" "$tag_name" | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
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
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 @@ | ||
name: Hide artifact links comments | ||
|
||
on: | ||
pull_request_target: | ||
types: [synchronize, reopened] | ||
|
||
jobs: | ||
hide-artifacts-link-comments: | ||
name: Hide artifact links | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- name: Hide comments | ||
uses: int128/hide-comment-action@v1 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
starts-with: "Do you want to test this code? Here you have an automated build:" | ||
ends-with: "WARNING: It may be unstable and result in corrupted configurations or data loss. Use only for testing!" |
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
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: PR | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- master | ||
- '*-maintenance' | ||
|
||
jobs: | ||
ci: | ||
name: CI | ||
uses: ./.github/workflows/ci.yml |
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,51 @@ | ||
# You'll need to setup the follwing environment variables: | ||
# secrets.REPO_TOKEN - A GitHub token with permissions to push and publish releases to the repo | ||
|
||
name: Release | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
title: | ||
description: 'Title to assign to the release' | ||
required: true | ||
type: string | ||
|
||
tag: | ||
description: 'Tag to assign to the release source code' | ||
required: true | ||
type: string | ||
|
||
generate_release_notes: | ||
description: 'Generate release notes?' | ||
required: true | ||
type: boolean | ||
|
||
jobs: | ||
ci: | ||
name: CI | ||
uses: ./.github/workflows/ci.yml | ||
with: | ||
debug_build: false | ||
|
||
release: | ||
name: Release | ||
needs: ci | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- name: Fetch build artifacts | ||
uses: actions/download-artifact@v2 | ||
with: | ||
path: release-assets/ | ||
|
||
- name: Release | ||
uses: softprops/action-gh-release@1e07f4398721186383de40550babbdf2b84acfc5 # v0.1.14 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
name: ${{ github.event.inputs.title }} | ||
tag_name: ${{ github.event.inputs.tag }} | ||
generate_release_notes: ${{ github.event.inputs.generate_release_notes }} | ||
files: release-assets/Betaflight-Configurator-*/** | ||
draft: true | ||
prerelease: false | ||
fail_on_unmatched_files: true |
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
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
Oops, something went wrong.