diff --git a/.github/workflows/alfie.yml b/.github/workflows/alfie.yml index b845e5f3..d39aa3ee 100644 --- a/.github/workflows/alfie.yml +++ b/.github/workflows/alfie.yml @@ -9,6 +9,14 @@ on: branches: - "main" + workflow_dispatch: + inputs: + run_release: + description: "Run release job" + required: false + default: true + type: boolean + concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true @@ -118,10 +126,12 @@ jobs: needs: [setup, unit-tests] runs-on: macos-15 timeout-minutes: 60 - if: github.event_name == 'push' + if: (github.event_name == 'push' || (github.event_name == 'workflow_dispatch' && inputs.run_release)) && !cancelled() steps: - name: Checkout Code uses: actions/checkout@v4 + with: + fetch-depth: 0 - name: Restore Ruby Gems uses: actions/cache@v4 @@ -142,7 +152,11 @@ jobs: restore-keys: | spm-${{ runner.os }}- - - name: Configure Bundler + - name: Install Homebrew formulas + run: | + brew bundle install + + - name: Install Ruby dependencies run: | bundle config set --local path 'vendor/bundle' bundle install --jobs 4 --retry 3