feat: dashboard geojson map #1390
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
name: initiate_enterprise_build | |
on: | |
pull_request: | |
branches: | |
- "*" | |
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@v1 | |
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 | |
- name: Confirm git commit SHA output | |
run: echo ${{ env.SHORT_COMMIT_ID }} | |
- name: Repository Dispatch | |
uses: peter-evans/repository-dispatch@v3 | |
env: | |
TOKEN: ${{ steps.generate_token.outputs.token }} | |
BRANCH_NAME: ${{ github.head_ref || github.ref_name }} | |
with: | |
token: ${{ env.TOKEN }} # GitHub App installation access token | |
repository: openobserve/o2-enterprise | |
event-type: initiate-enterprise-build | |
client-payload: '{"o2_enterprise_repo": "main", "o2_opensource_repo": "${{ env.BRANCH_NAME }}" ,"o2_commit_id": "${{ env.SHORT_COMMIT_ID }}"}' |