mirror of
https://github.com/actions/runner-images.git
synced 2025-12-27 11:58:15 +08:00
Add GitHub actions for image generation (#7182)
This commit is contained in:
27
.github/workflows/ubuntu2004.yml
vendored
Normal file
27
.github/workflows/ubuntu2004.yml
vendored
Normal file
@@ -0,0 +1,27 @@
|
||||
run-name: Ubuntu20.04 - ${{ (github.event.pull_request.title || 'scheduled/manual run') }}
|
||||
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/linux/**'
|
||||
schedule:
|
||||
- cron: '0 0 * * *'
|
||||
|
||||
jobs:
|
||||
Ubuntu_2004:
|
||||
if: ${{ (github.event.label.name == 'ubuntu-all') || (github.event.label.name == 'ubuntu-2004') || (inputs.CUSTOM_REPOSITORY != '' && inputs.CUSTOM_REPOSITORY_COMMIT_HASH != '') || (github.event_name == 'schedule') }}
|
||||
uses: ./.github/workflows/ubuntu-win-generation.yml
|
||||
with:
|
||||
image_name: 'ubuntu2004'
|
||||
image_readme_name: 'Ubuntu2004-Readme.md'
|
||||
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