diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 225425a..c509b75 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -35,3 +35,5 @@ jobs: needs: document uses: kurocado-studio/styleguide/.github/workflows/workflow.release.yml@main secrets: inherit + with: + branch_name: ${{ github.ref }} diff --git a/.github/workflows/workflow.release.yml b/.github/workflows/workflow.release.yml index cc96082..917106e 100644 --- a/.github/workflows/workflow.release.yml +++ b/.github/workflows/workflow.release.yml @@ -1,5 +1,5 @@ concurrency: - group: ${{ github.workflow }}-${{ inputs.branch }} + group: ${{ github.workflow }}-${{ inputs.branch_name }} cancel-in-progress: true permissions: @@ -10,7 +10,7 @@ permissions: on: workflow_call: inputs: - branch: + branch_name: required: true type: string @@ -19,11 +19,11 @@ jobs: runs-on: ubuntu-latest if: | ( - inputs.branch == 'refs/heads/main' || - inputs.branch == 'refs/heads/alpha' || - inputs.branch == 'refs/heads/beta' || - inputs.branch == 'refs/heads/canary' || - inputs.branch == 'refs/heads/pre/rc' + inputs.branch_name == 'refs/heads/main' || + inputs.branch_name == 'refs/heads/alpha' || + inputs.branch_name == 'refs/heads/beta' || + inputs.branch_name == 'refs/heads/canary' || + inputs.branch_name == 'refs/heads/pre/rc' ) steps: - name: Checkout