Add project creation in development
and test
environments (#365)
#284
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: Trigger Deploy | |
on: | |
push: | |
branches: [main] | |
workflow_dispatch: {} | |
jobs: | |
trigger-deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v3 | |
- name: Set git short | |
id: git_short_var | |
run: | | |
echo "github_sha_short=$(git rev-parse --short ${{ github.sha }})" >> $GITHUB_OUTPUT | |
- name: trigger workflow | |
run: | | |
curl -X POST -H 'Authorization: Bearer ${{secrets.HERMES_GH_SVC_ACCESS_TOKEN}}' -H 'Accept: application/vnd.github+json' -H 'X-GitHub-Api-Version: 2022-11-28' https://api.github.com/repos/${{secrets.HERMES_DEPLOY_TRIGGER_REPOSITORY_NAME}}/dispatches --data '{"event_type": "hermes_merge_to_main","client_payload":{"github_sha": "${{ github.sha }}","github_sha_short": "${{ steps.git_short_var.outputs.github_sha_short }}","message": "${{ github.repository }} - ${{ steps.git_short_var.outputs.github_sha_short }}"}}' |