|
| 1 | +# This is a basic workflow that is manually triggered |
| 2 | + |
| 3 | +name: Manual workflow |
| 4 | + |
| 5 | +# Controls when the action will run. Workflow runs when manually triggered using the UI |
| 6 | +# or API. |
| 7 | +on: |
| 8 | + workflow_dispatch: |
| 9 | + # Inputs the workflow accepts. |
| 10 | + inputs: |
| 11 | + name: |
| 12 | + # Friendly description to be shown in the UI instead of 'name' |
| 13 | + description: 'Person to greet' |
| 14 | + # Default value if no value is explicitly provided |
| 15 | + default: 'World' |
| 16 | + # Input has to be provided for the workflow to run |
| 17 | + required: true |
| 18 | + # The data type of the input |
| 19 | + type: string |
| 20 | + |
| 21 | +# A workflow run is made up of one or more jobs that can run sequentially or in parallel |
| 22 | +jobs: |
| 23 | + # This workflow contains a single job called "greet" |
| 24 | + greet: |
| 25 | + # The type of runner that the job will run on |
| 26 | + runs-on: ubuntu-latest |
| 27 | + |
| 28 | + # Steps represent a sequence of tasks that will be executed as part of the job |
| 29 | + steps: |
| 30 | + # Runs a single command using the runners shell |
| 31 | + - name: Send greeting |
| 32 | + run: echo "Hello ${{ inputs.name }}"- name: Setup .NET Core SDK |
| 33 | + |
| 34 | + with: |
| 35 | + # Optional SDK version(s) to use. If not provided, will install global.json version when available. Examples: 2.2.104, 3.1, 3.1.x, 3.x, 6.0.2xx |
| 36 | + dotnet-version: # optional |
| 37 | + # Optional quality of the build. The possible values are: daily, signed, validated, preview, ga. |
| 38 | + dotnet-quality: # optional |
| 39 | + # Optional global.json location, if your global.json isn't located in the root of the repo. |
| 40 | + global-json-file: # optional |
| 41 | + # Optional package source for which to set up authentication. Will consult any existing NuGet.config in the root of the repo and provide a temporary NuGet.config using the NUGET_AUTH_TOKEN environment variable as a ClearTextPassword |
| 42 | + source-url: # optional |
| 43 | + # Optional OWNER for using packages from GitHub Package Registry organizations/users other than the current repository's owner. Only used if a GPR URL is also provided in source-url |
| 44 | + owner: # optional |
| 45 | + # Optional NuGet.config location, if your NuGet.config isn't located in the root of the repo. |
| 46 | + config-file: # optional |
| 47 | + # Optional input to enable caching of the NuGet global-packages folder |
| 48 | + cache: # optional |
| 49 | + # Used to specify the path to a dependency file: packages.lock.json. Supports wildcards or a list of file names for caching multiple dependencies. |
| 50 | + cache-dependency-path: # optional |
0 commit comments