Computer scienceSystem administration and DevOpsCI/CD processesGitHub Actions

Create a "hello world" composite action with input

Predict the output of the workflow

Report a typo

Given the YAML configuration for a GitHub Action and a corresponding workflow, predict the workflow's output.

Action Configuration:

name: 'Welcome Message'
description: 'Sends a welcome message'
inputs:
  name:  # id of input
    description: 'Name to welcome'
    required: true
    default: 'GitHub User'

runs:
  using: 'composite'
  steps:
    - name: Welcome User
      run: echo "Welcome, ${{ inputs.name }}. Glad to have you here!"
      shell: bash

Workflow Configuration:

on: [push]

jobs:
  send_welcome_message:
    runs-on: ubuntu-latest
    name: Send a custom welcome message
    steps:
      - uses: actions/checkout@v2
      - id: welcome
        uses: <your-username>/welcome-message-action@v1
        with:
          name: 'Jane Doe'

Considering the provided action and workflow configurations, write the expected console output when a push event triggers the workflow.

Enter a short text

Create a free account to access the full topic