lfarci / github-actions

Preparation resources for the GitHub Actions certification
0 stars 0 forks source link

Identify the metadata and syntax needed to create an action #52

Closed lfarci closed 3 months ago

lfarci commented 3 months ago
name: 'Hello World'
description: 'Greet someone and record the time'
inputs:
  who-to-greet:  # id of input
    description: 'Who to greet'
    required: true
    default: 'World'
outputs:
  time: # id of output
    description: 'The time we greeted you'
runs:
  using: 'node20'
  main: 'index.js'

Creating an action metadata file