CI: Trigger CLI action on cli/cmd & cli/internal/cmd changes

This commit is contained in:
Nils Hanke 2022-09-09 10:26:25 +02:00 committed by Nils Hanke
parent e0bfdec7ff
commit 9c8ba7b153

View File

@ -4,7 +4,8 @@ on:
branches: branches:
- main - main
paths: paths:
- "docs/docs/reference/cli.md" - "cli/cmd/**"
- "cli/internal/cmd/**"
workflow_dispatch: workflow_dispatch:
jobs: jobs:
@ -51,13 +52,13 @@ jobs:
env: env:
API_TOKEN_GITHUB: ${{ secrets.CI_GITHUB_REPOSITORY }} API_TOKEN_GITHUB: ${{ secrets.CI_GITHUB_REPOSITORY }}
with: with:
source_file: 'cli.md' source_file: "cli.md"
destination_repo: 'edgelesssys/constellation' destination_repo: "edgelesssys/constellation"
destination_branch_create: 'action/constellation/update-cli-reference' destination_branch_create: "action/constellation/update-cli-reference"
destination_folder: 'docs/docs/reference' destination_folder: "docs/docs/reference"
user_name: '${{ github.actor }}' user_name: "${{ github.actor }}"
user_email: '${{ github.actor }}@users.noreply.github.com' user_email: "${{ github.actor }}@users.noreply.github.com"
commit_message: 'CLI reference was updated by edgelesssys/constellation@${{ env.COMMIT_END}}' commit_message: "CLI reference was updated by edgelesssys/constellation@${{ env.COMMIT_END}}"
- name: Publish new reference (update branch) - name: Publish new reference (update branch)
if: ${{ env.EXISTS == 1 }} if: ${{ env.EXISTS == 1 }}
@ -65,10 +66,10 @@ jobs:
env: env:
API_TOKEN_GITHUB: ${{ secrets.CI_GITHUB_REPOSITORY }} API_TOKEN_GITHUB: ${{ secrets.CI_GITHUB_REPOSITORY }}
with: with:
source_file: 'cli.md' source_file: "cli.md"
destination_repo: 'edgelesssys/constellation' destination_repo: "edgelesssys/constellation"
destination_branch: 'action/constellation/update-cli-reference' destination_branch: "action/constellation/update-cli-reference"
destination_folder: 'docs/docs/reference' destination_folder: "docs/docs/reference"
user_name: '${{ github.actor }}' user_name: "${{ github.actor }}"
user_email: '${{ github.actor }}@users.noreply.github.com' user_email: "${{ github.actor }}@users.noreply.github.com"
commit_message: 'CLI reference was updated by edgelesssys/constellation@${{ env.COMMIT_END}}' commit_message: "CLI reference was updated by edgelesssys/constellation@${{ env.COMMIT_END}}"