mirror of
https://github.com/edgelesssys/constellation.git
synced 2024-10-01 01:36:09 -04:00
CI: Trigger CLI action on cli/cmd & cli/internal/cmd changes
This commit is contained in:
parent
e0bfdec7ff
commit
9c8ba7b153
31
.github/workflows/update-cli-reference.yml
vendored
31
.github/workflows/update-cli-reference.yml
vendored
@ -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}}"
|
||||||
|
Loading…
Reference in New Issue
Block a user