Skip to content

Fix broken test import (#314) #226

Fix broken test import (#314)

Fix broken test import (#314) #226

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 }}"}}'