-
-
Notifications
You must be signed in to change notification settings - Fork 168
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: enforce pr convention, automated beta track from main (#1705)
- Loading branch information
Showing
6 changed files
with
41 additions
and
15 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
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 |
---|---|---|
@@ -1,4 +1,5 @@ | ||
name: build & push docker container | ||
name: docker | ||
|
||
on: | ||
push: | ||
branches: | ||
|
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: Cut a release | ||
name: release | ||
|
||
on: | ||
workflow_dispatch: | ||
|
@@ -14,7 +14,6 @@ env: | |
|
||
jobs: | ||
app_build_number: | ||
name: Calculate app build number | ||
runs-on: ubuntu-latest | ||
steps: | ||
- id: calculate | ||
|
@@ -27,7 +26,6 @@ jobs: | |
|
||
validate_version: | ||
needs: app_build_number | ||
name: Validate version | ||
runs-on: ubuntu-latest | ||
outputs: | ||
version: ${{ steps.get_current_version.outputs.version }} | ||
|
@@ -55,7 +53,6 @@ jobs: | |
push_release: | ||
needs: [validate_version, app_build_number] | ||
name: Add version to apps, push release branch and tag | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
|
@@ -92,9 +89,9 @@ jobs: | |
git config --global user.email "[email protected]" | ||
git config --global user.name "Voyager CI" | ||
git add . | ||
git commit -S -m "Release ${{ needs.validate_version.outputs.version }} (${{ needs.app_build_number.outputs.app_build }})" | ||
git commit -S -m "release: ${{ needs.validate_version.outputs.version }} (${{ needs.app_build_number.outputs.app_build }})" | ||
TAG_NAME="${TAG_PREFIX}${{ needs.validate_version.outputs.version }}" | ||
echo "Creating tag: $TAG_NAME" | ||
git tag "$TAG_NAME" | ||
git tag -s "$TAG_NAME" | ||
git push origin "$RELEASE_BRANCH_PREFIX/${{ needs.validate_version.outputs.version }}" | ||
git push origin "$TAG_NAME" |
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,24 @@ | ||
name: semantic_pull_request | ||
|
||
on: | ||
pull_request_target: | ||
types: | ||
- opened | ||
- edited | ||
- synchronize | ||
|
||
jobs: | ||
main: | ||
if: github.repository == 'aeharding/voyager' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Validate PR title | ||
uses: amannn/action-semantic-pull-request@v5 | ||
with: | ||
subjectPattern: ^(?![A-Z]).+$ | ||
subjectPatternError: | | ||
The subject "{subject}" found in the pull request title "{title}" | ||
didn't match the configured pattern. Please ensure that the subject | ||
doesn't start with an uppercase character. | ||
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