Skip to content

Commit

Permalink
Update .github/workflows/macos.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
wojtekmach committed Aug 2, 2024
1 parent d6e51f4 commit 1c88d85
Showing 1 changed file with 22 additions and 5 deletions.
27 changes: 22 additions & 5 deletions .github/workflows/macos.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,33 @@
name: Build macOS
on:
schedule:
# Run every 5 minute
- cron: '*/5 * * * *'
# Run hourly
- cron: '0 * * * *'

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 }}

0 comments on commit 1c88d85

Please sign in to comment.