Skip to content

Commit

Permalink
feat(ci): fix default-branch
Browse files Browse the repository at this point in the history
  • Loading branch information
trevorwhitney committed Nov 22, 2023
1 parent 238ff9b commit fe48dc3
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/prepare.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
name: prepare release
on:
workflow_dispatch:
schedule:
- cron: "0 8 * * *" # daily at 8am
# schedule:
# - cron: "0 8 * * *" # daily at 8am, but how to specify branch name?
push:
branches:
- "release-[0-9].[0-9].x"
Expand Down Expand Up @@ -36,6 +36,11 @@ jobs:
needs:
- upload
steps:
- name: Extract branch name
shell: bash
run: echo "branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" >> $GITHUB_OUTPUT
id: extract_branch
- uses: google-github-actions/release-please-action@v3
with:
command: manifest
default-branch: "${{ steps.extract_branch.outputs.branch }}"

0 comments on commit fe48dc3

Please sign in to comment.