Skip to content

value for inputs through Github UI for caller workflows #129096

Closed Answered by Mr-Saikiran
Mr-Saikiran asked this question in Actions
Discussion options

You must be logged in to vote

After some research I found it can help me this way.

on:
  workflow_dispatch:
    inputs:
      environment:
        type: choice
        required: true
        default: 'qa'
        options:
          - qa
          - dev

permissions:
  id-token: write
  contents: read
  packages: read

jobs:
  caller-workflow:
    uses: org/repo/.github/workflows/callable.yaml@main
    secrets: inherit
    with:
      env: ${{ github.event.inputs.environment }}

Replies: 5 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by Mr-Saikiran
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Actions Build, test, and automate your deployment pipeline with world-class CI/CD Question
3 participants