40 lines
749 B
YAML
40 lines
749 B
YAML
on:
|
|
workflow_dispatch:
|
|
inputs:
|
|
sync_var:
|
|
required: true
|
|
type: string
|
|
|
|
jobs:
|
|
check:
|
|
outputs:
|
|
sync: "${{ steps.check_id.outputs.sync }}"
|
|
runs-on: docker
|
|
container:
|
|
image: docker.io/alpine:3.21.2
|
|
|
|
steps:
|
|
- name: the check script
|
|
id: check_id
|
|
run: echo "sync=${{ inputs.sync_var }}" >> $GITHUB_OUTPUT
|
|
|
|
sync:
|
|
needs: check
|
|
if: needs.check.outputs.sync == 'true'
|
|
runs-on: docker
|
|
container:
|
|
image: docker.io/alpine:3.21.2
|
|
|
|
steps:
|
|
- name: run sync
|
|
run: echo "run sync"
|
|
upload:
|
|
needs: sync
|
|
runs-on: docker
|
|
container:
|
|
image: docker.io/alpine:3.21.2
|
|
|
|
steps:
|
|
- name: run upload
|
|
run: echo "run upload"
|
|
|