mirror of
https://github.com/actions/runner-images.git
synced 2025-12-27 03:47:40 +08:00
Add GitHub actions for image generation (#7182)
This commit is contained in:
30
.github/workflows/macos12.yml
vendored
Normal file
30
.github/workflows/macos12.yml
vendored
Normal file
@@ -0,0 +1,30 @@
|
||||
run-name: macOS-12_unstable.${{ github.run_id }}.${{ github.run_attempt }}
|
||||
on:
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
CUSTOM_REPOSITORY:
|
||||
description: 'Custom repository (owner/repo)'
|
||||
required: false
|
||||
CUSTOM_REPOSITORY_COMMIT_HASH:
|
||||
description: 'Commit hash'
|
||||
required: false
|
||||
pull_request_target:
|
||||
types: labeled
|
||||
paths:
|
||||
- 'images/macos/**'
|
||||
schedule:
|
||||
- cron: '0 0 * * *'
|
||||
|
||||
jobs:
|
||||
macOS_12:
|
||||
if: ${{ (github.event.label.name == 'macos-all') || (github.event.label.name == 'macos-12') || (inputs.CUSTOM_REPOSITORY != '' && inputs.CUSTOM_REPOSITORY_COMMIT_HASH != '') || (github.event_name == 'schedule') }}
|
||||
name: macOS-12_unstable.${{ github.run_id }}.${{ github.run_attempt }}
|
||||
uses: ./.github/workflows/macos-generation.yml
|
||||
with:
|
||||
image_label: 'macOS Monterey'
|
||||
base_image_name: 'clean-macOS-12-380Gb-runner'
|
||||
template_path: 'templates/macOS-12.json'
|
||||
target_datastore: 'ds-image'
|
||||
custom_repo: ${{ github.event.inputs.CUSTOM_REPOSITORY }}
|
||||
custom_repo_commit_hash: ${{ github.event.inputs.CUSTOM_REPOSITORY_COMMIT_HASH }}
|
||||
secrets: inherit
|
||||
Reference in New Issue
Block a user