Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
308 views
in Technique[技术] by (71.8m points)

How to pre-fill an input field in a workflow_dispatch Github action with GITHUB-SHA

I'm trying to build a workflow_dispatch (ie manual) Github action that pre-fills the input fields with the SHA of the branch.

ie

name: Manually tag a release
on: 
  workflow_dispatch:
    inputs:
      git-sha:
        description: Release SHA
        default: <prefill with GITHUB_SHA>
        required: true

I've tried default: ${{ github.sha }} but that throws an error.

Is this possible and what is the syntax?

question from:https://stackoverflow.com/questions/65895649/how-to-pre-fill-an-input-field-in-a-workflow-dispatch-github-action-with-github

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...