Skip to content

Commit

Permalink
reuseable workflows need to be at root, install-cli artifact
Browse files Browse the repository at this point in the history
  • Loading branch information
salman1993 committed Jan 17, 2025
1 parent 7210643 commit f688068
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# This is a reuseable workflow that bundles the Desktop App for macOS.
# This gets used in:
# This is a **reuseable** workflow that bundles the Desktop App for macOS.
# It doesn't get triggered on its own. It gets used in multiple workflows:
# - release.yml
# - canary.yml
# - pr-comment-bundle-desktop.yml
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/canary.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ jobs:
# 3) Bundle Desktop App (macOS only) - builds goosed and Electron app
# ------------------------------------------------------------
bundle-desktop:
uses: ./.github/workflows/reuseable/bundle-desktop.yml
uses: ./.github/workflows/bundle-desktop.yml
secrets:
CERTIFICATE_OSX_APPLICATION: ${{ secrets.CERTIFICATE_OSX_APPLICATION }}
CERTIFICATE_PASSWORD: ${{ secrets.CERTIFICATE_PASSWORD }}
Expand Down Expand Up @@ -119,6 +119,7 @@ jobs:
artifacts: |
goose-*.tar.bz2
Goose*.zip
install-cli.sh
allowUpdates: true
omitBody: true
omitPrereleaseDuringUpdate: true
4 changes: 3 additions & 1 deletion .github/workflows/pr-comment-bundle-desktop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@ jobs:
allowed_contexts: pull_request

bundle-desktop:
uses: ./.github/workflows/reuseable/bundle-desktop.yml
# Only run this if "/bundle-desktop" command is detected.
if: ${{ steps.command.outputs.continue == 'true' }}
uses: ./.github/workflows/bundle-desktop.yml
secrets:
CERTIFICATE_OSX_APPLICATION: ${{ secrets.CERTIFICATE_OSX_APPLICATION }}
CERTIFICATE_PASSWORD: ${{ secrets.CERTIFICATE_PASSWORD }}
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ jobs:
# 3) Bundle Desktop App (macOS only) - builds goosed and Electron app
# ------------------------------------------------------------
bundle-desktop:
uses: ./.github/workflows/reuseable/bundle-desktop.yml
uses: ./.github/workflows/bundle-desktop.yml
secrets:
CERTIFICATE_OSX_APPLICATION: ${{ secrets.CERTIFICATE_OSX_APPLICATION }}
CERTIFICATE_PASSWORD: ${{ secrets.CERTIFICATE_PASSWORD }}
Expand Down Expand Up @@ -114,6 +114,7 @@ jobs:
artifacts: |
goose-*.tar.bz2
Goose*.zip
install-cli.sh
allowUpdates: true
omitBody: true
omitPrereleaseDuringUpdate: true
Expand All @@ -130,6 +131,7 @@ jobs:
artifacts: |
goose-*.tar.bz2
Goose*.zip
install-cli.sh
allowUpdates: true
omitBody: true
omitPrereleaseDuringUpdate: true
Expand Down

0 comments on commit f688068

Please sign in to comment.