Net 3181 consul gh issue 15709 allow log file naming like nomad - fix bug #75
Workflow file for this run
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
# Copyright (c) HashiCorp, Inc. | |
# SPDX-License-Identifier: MPL-2.0 | |
name: Trigger Community Edition to Enterprise Merge | |
on: | |
pull_request_target: | |
types: | |
- closed | |
branches: | |
- main | |
- release/** | |
jobs: | |
trigger-ce-merge: | |
# run this only on merge events in CE repo | |
if: ${{ github.event.pull_request.merged && github.repository == 'hashicorp/consul' }} | |
runs-on: ubuntu-latest | |
steps: | |
- name: Trigger Merge | |
env: | |
GIT_REF: ${{ github.ref_name }} | |
GIT_SHA: ${{ github.sha }} | |
GH_PAT: ${{ secrets.ELEVATED_GITHUB_TOKEN }} | |
GIT_ACTOR: ${{ github.actor }} | |
# TODO(spatel): CE refactor | |
run: | | |
curl -H "Authorization: token $GH_PAT" \ | |
-H 'Accept: application/json' \ | |
-d "{\"event_type\": \"oss-merge\", \"client_payload\": {\"git-ref\": \"${GIT_REF}\", \"git-sha\": \"${GIT_SHA}\", \"git-actor\": \"${GIT_ACTOR}\" }}" \ | |
"https://api.github.com/repos/hashicorp/consul-enterprise/dispatches" |