Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: automatically build release branch #8039

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
name: CI/CD

on:
pull_request: # Runs whenever a pull request is created or updated
push: # Runs whenever a commit is pushed to the repository
branches: [master, develop, beta, hotfix/*] # ...on any of these branches
workflow_call: # Allows another workflow to call this one
workflow_dispatch: # Allows you to run this workflow manually from the Actions tab

concurrency:
Expand Down
10 changes: 8 additions & 2 deletions .github/workflows/prepare-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ on:

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
make-branch-and-prs:
# The type of runner that the job will run on
runs-on: ubuntu-latest

Expand Down Expand Up @@ -48,3 +47,10 @@ jobs:
github_token: ${{ secrets.GITHUB_TOKEN }}
pr_allow_empty: true

# Actions taken by a workflow aren't allowed to automatically trigger the 'on' events of another workflow,
# so the CI/CD workflow is not triggered by the branch and PRs created above.
# Call it explicitly instead:
call-ci-cd:
needs: make-branch-and-prs
uses: ./.github/workflows/ci-cd.yml
secrets: inherit