Enable tests on github actions #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
name: KanbanBot Integration CICD | |
concurrency: | |
group: kanbanbot-${{ github.ref }} | |
on: | |
pull_request: | |
types: [opened, edited, reopened, synchronize, labeled] | |
jobs: | |
kanbanbot-integration: | |
name: Trigger Integration CICD | |
runs-on: ubuntu-latest | |
timeout-minutes: 10 | |
if: contains(github.event.pull_request.labels.*.name, 'integration deployment') | |
steps: | |
- name: Get tag | |
shell: bash | |
id: get_tag | |
run: echo TAG=$(echo $GITHUB_REF | cut -d / -f 3) >> $GITHUB_OUTPUT | |
- name: Repository Dispatch | |
uses: peter-evans/repository-dispatch@v2 | |
with: | |
token: ${{ secrets.KANBANBOT_CD_PAT }} | |
repository: ${{ secrets.KANBANBOT_CD_REPOSITORY }} | |
event-type: integration_deployment | |
client-payload: '{"ref": "${{ github.ref }}", "sha": "${{ github.sha }}", "tag": "${{ steps.get_tag.outputs.TAG }}"}' |