From 9e9f0deb46163f6386de7cc0734be8c5095cd3b7 Mon Sep 17 00:00:00 2001 From: Wojtek Mach Date: Fri, 2 Aug 2024 21:00:04 +0200 Subject: [PATCH] Update .github/workflows/macos.yml --- .github/workflows/macos.yml | 22 +++++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml index 382a00c..0b1d148 100644 --- a/.github/workflows/macos.yml +++ b/.github/workflows/macos.yml @@ -3,14 +3,30 @@ on: schedule: # Run every 5 minute - cron: '*/5 * * * *' + + workflow_dispatch: + inputs: + otp-ref-name: + default: "OTP-27.0.1" + otp-ref: + openssl-version: + default: "3.1.6" jobs: schedule: if: github.event.schedule - name: Schedule + name: "Schedule" runs-on: ubuntu-latest steps: - run: | - latest_sha=$(gh api repos/erlang/otp/commits/master --jq .sha) - echo "Latest SHA: $latest_sha" + ref=$(gh api repos/erlang/otp/commits/master --jq .sha) + gh workflow run --repo hexpm/bob macos.yml --field otp-ref-name=master --field otp-ref=$ref env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + build: + if: github.event.inputs + name: "Build OTP macOS" + runs-on: ubuntu-latest + steps: + - run: | + echo ${{ inputs.otp-ref-name }} + echo ${{ inputs.otp-ref }}