mirror of
https://github.com/openobserve/openobserve.git
synced 2026-11-04 16:09:05 +00:00
+5![github-actions[bot]](https://secure.gravatar.com/avatar/cb7b7994e594270ea25948a7bf186123?d=identicon&s=40)








ae22a74e62
#11720 Design at: https://github.com/openobserve/designs/blob/main/dashboards/ux-improvement-dialog/design.md --------- --------- Co-authored-by: ktx-vaidehi <134508096+ktx-vaidehi@users.noreply.github.com> Co-authored-by: Abhay Padamani <141122205+ktx-abhay@users.noreply.github.com> Co-authored-by: Sai Nikhil <nikhil@openobserve.ai> Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com> Co-authored-by: ktx-akshay <akshay.patil@kiara.tech> Co-authored-by: Bhargav <BJP232004@GMAIL.COM> Co-authored-by: ktx-mihir <mihir.patel@kiara.tech> Co-authored-by: ktx-riya <riya.kukadiya@kiara.tech> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: Omkar Kesarkhane <127078473+omkarK06@users.noreply.github.com> Co-authored-by: omkark06 <omkar@zinclabs.io> Co-authored-by: ktx-vaidehi <vaidehi.akhani@kiara.tech> Co-authored-by: ktx-abhay <abhay.padamani@kiara.tech> Co-authored-by: Shrinath Rao <shnath@openobserve.ai>
50 lines
1.8 KiB
YAML
50 lines
1.8 KiB
YAML
name: initiate_enterprise_build
|
|
|
|
on:
|
|
pull_request:
|
|
branches:
|
|
- "**"
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
env:
|
|
GITHUB_HEAD_SHA: ${{ github.event.pull_request.head.sha }}
|
|
|
|
jobs:
|
|
initiate_enterprise_build:
|
|
if: ${{ github.event.pull_request.head.repo.fork == false }} # Only run for PRs which are not from forks
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
pull-requests: write
|
|
steps:
|
|
- name: Generate token
|
|
id: generate_token
|
|
uses: actions/create-github-app-token@v3
|
|
with:
|
|
private-key: ${{ secrets.PRIVATE_KEY }}
|
|
app-id: ${{ secrets.APP_ID }}
|
|
# Set the owner, so the token can be used in all repositories
|
|
owner: ${{ github.repository_owner }}
|
|
- name: Set build short sha
|
|
shell: bash
|
|
run: |
|
|
unset SHORT_COMMIT_ID
|
|
echo "SHORT_COMMIT_ID=${GITHUB_HEAD_SHA:0:7}" >> $GITHUB_ENV
|
|
echo "COMMIT_ID=${GITHUB_HEAD_SHA}" >> $GITHUB_ENV
|
|
|
|
- name: Confirm git commit SHA output
|
|
run: echo ${{ env.SHORT_COMMIT_ID }}
|
|
|
|
- name: Repository Dispatch
|
|
uses: peter-evans/repository-dispatch@v4
|
|
env:
|
|
TOKEN: ${{ steps.generate_token.outputs.token }}
|
|
BRANCH_NAME: ${{ github.head_ref || github.ref_name }}
|
|
with:
|
|
token: ${{ env.TOKEN }} # access token
|
|
repository: openobserve/o2-enterprise
|
|
event-type: initiate-enterprise-build
|
|
client-payload: '{"o2_enterprise_repo": "${{ env.BRANCH_NAME }}", "o2_opensource_repo": "${{ env.BRANCH_NAME }}" ,"o2_commit_id": "${{ env.SHORT_COMMIT_ID }}", "o2_full_commit":"${{env.COMMIT_ID}}", "o2_target_branch": "${{ github.event.pull_request.base.ref }}"}'
|