Skip to content

Conversation

@WebGregGit
Copy link
Owner

No description provided.

@WebGregGit
Copy link
Owner Author

Yes I add new.

Copy link
Owner Author

@WebGregGit WebGregGit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nothing changed

@github-learning-lab
Copy link

Nice work adding the entrypoint.sh script.

In entrypoint.sh, all we're doing is outputting a "Hello world" message using an environment variable called MY_NAME.

Next, we'll define a workflow that uses the GitHub Action.
Next, we'll define the action.yml file which contains the metadata for our action.

action.yml

All actions require a metadata file that uses YAML syntax. The data in the metadata file defines the inputs, outputs and main entrypoint for your action.

Step 3: Add an action metadata file

We will use an input parameter to read in the value of MY_NAME.

⌨️ Activity: Create action.yml

  1. As a part of this branch and pull request, create a file titled action-a/action.yml. You can do so using this quicklink or manually.

  2. Add the following content to the action.yml file:

    name: "Hello Actions"
    description: "Greet someone"
    author: "octocat@github.com"
    
    inputs:
      MY_NAME:
        description: "Who to greet"
        required: true
        default: "World"
    
    runs:
      using: "docker"
      image: "Dockerfile"
    
    branding:
      icon: "mic"
      color: "purple"
  3. Stage and commit the changes

  4. Push the changes to GitHub


I'll respond when I detect a new commit on this branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants