From 81610cc19c0a9935dcdc0b9e1f5031180e62bcb1 Mon Sep 17 00:00:00 2001 From: p0ny Date: Mon, 15 Sep 2025 10:32:55 +0800 Subject: [PATCH] chore: make config name more verbose --- .github/workflows/chatops-migrate.yml | 6 +++--- README.md | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/chatops-migrate.yml b/.github/workflows/chatops-migrate.yml index dc52be3..04bb4ce 100644 --- a/.github/workflows/chatops-migrate.yml +++ b/.github/workflows/chatops-migrate.yml @@ -22,9 +22,9 @@ jobs: targets: ${{ steps.parse.outputs.targets }} steps: - name: Write command config - # write a config.yaml file to runner temp directory + # write a bytebase-action-config.yaml file to runner temp directory run: | - cat < ${{ runner.temp }}/config.yaml + cat < ${{ runner.temp }}/bytebase-action-config.yaml test: stage: environments/test targets: @@ -40,7 +40,7 @@ jobs: COMMENT="${{ github.event.comment.body }}" echo "Comment: $COMMENT" - CONFIG_FILE="${{ runner.temp }}/config.yaml" + CONFIG_FILE="${{ runner.temp }}/bytebase-action-config.yaml" # Get list of valid environments from config VALID_ENVS=$(yq eval 'keys | join(", ")' "$CONFIG_FILE") diff --git a/README.md b/README.md index 0415c74..9fe0b43 100644 --- a/README.md +++ b/README.md @@ -72,7 +72,7 @@ This workflow enables ChatOps-style deployments through PR comments. Team member #### Configuration -1. **Define environments in the workflow**: Edit the `config.yaml` generation step to define your environments and their database targets. +1. **Define environments in the workflow**: Edit the `bytebase-action-config.yaml` generation step to define your environments and their database targets. > [!NOTE] > The top-level keys (e.g., `test`, `prod`) are used as GitHub Actions job environments, so they must match the environment names configured in your repository settings. @@ -81,7 +81,7 @@ This workflow enables ChatOps-style deployments through PR comments. Team member ```yml - name: Write command config run: | - cat < ${{ runner.temp }}/config.yaml + cat < ${{ runner.temp }}/bytebase-action-config.yaml test: stage: environments/test targets: