Skip to content

Commit

Permalink
Merge pull request #25 from javacruft/bug/fix-publish-all-rocks-from-…
Browse files Browse the repository at this point in the history
…branch

publish-branch: pass branch to publish-rock
  • Loading branch information
javacruft authored Dec 12, 2023
2 parents 5741a09 + bdee4da commit fcd7870
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/build_publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ on:
description: Publish rocks ?
default: false
type: boolean
branch:
description: Branch to build from
required: true
default: main

jobs:
build-and-publish:
Expand All @@ -24,6 +28,8 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
ref: ${{ inputs.branch }}
- uses: canonical/craft-actions/rockcraft-pack@main
id: rockcraft
with:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/publish_branch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,5 @@ jobs:
uses: ./.github/workflows/build_publish.yaml
with:
rocks: ${{ needs.allrocks.outputs.rocks }}
branch: ${{ inputs.branch }}
publish: true

0 comments on commit fcd7870

Please sign in to comment.