{"action":"created","issue":{"url":"https://api.github.com/repos/alexjslessor/hello-github-actions/issues/1","repository_url":"https://api.github.com/repos/alexjslessor/hello-github-actions","labels_url":"https://api.github.com/repos/alexjslessor/hello-github-actions/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/alexjslessor/hello-github-actions/issues/1/comments","events_url":"https://api.github.com/repos/alexjslessor/hello-github-actions/issues/1/events","html_url":"https://github.com/alexjslessor/hello-github-actions/issues/1","id":545311042,"node_id":"MDU6SXNzdWU1NDUzMTEwNDI=","number":1,"title":"Welcome","user":{"login":"github-learning-lab[bot]","id":37936606,"node_id":"MDM6Qm90Mzc5MzY2MDY=","avatar_url":"https://avatars0.githubusercontent.com/in/10572?v=4","gravatar_id":"","url":"https://api.github.com/users/github-learning-lab%5Bbot%5D","html_url":"https://github.com/apps/github-learning-lab","followers_url":"https://api.github.com/users/github-learning-lab%5Bbot%5D/followers","following_url":"https://api.github.com/users/github-learning-lab%5Bbot%5D/following{/other_user}","gists_url":"https://api.github.com/users/github-learning-lab%5Bbot%5D/gists{/gist_id}","starred_url":"https://api.github.com/users/github-learning-lab%5Bbot%5D/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/github-learning-lab%5Bbot%5D/subscriptions","organizations_url":"https://api.github.com/users/github-learning-lab%5Bbot%5D/orgs","repos_url":"https://api.github.com/users/github-learning-lab%5Bbot%5D/repos","events_url":"https://api.github.com/users/github-learning-lab%5Bbot%5D/events{/privacy}","received_events_url":"https://api.github.com/users/github-learning-lab%5Bbot%5D/received_events","type":"Bot","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2020-01-04T17:41:43Z","updated_at":"2020-01-04T17:41:44Z","closed_at":null,"author_association":"NONE","body":"# Welcome\n\nThis course helps you create a simple GitHub Action and use that action in a workflow. \n\n## What are GitHub Actions?\n\nGitHub Actions are a flexible way to automate nearly every aspect of your team's software workflow. Here are just a few of the ways teams are using GitHub Actions:\n\n- Automated testing (CI)\n- Continuous delivery and deployment\n- Responding to workflow triggers using issues, @ mentions, labels, and more\n- Triggering code reviews\n- Managing branches\n- Triaging issues and pull requests\n\nThe sky is truly the limit with GitHub Actions.\n\nThe best part, these workflows are stored as code in your repository and easily shared and reused across teams.\n\nTo learn even more, check out the [GitHub Actions feature page](https://github.com/features/actions), or the [GitHub Actions documentation](https://help.github.com/en/actions).\n\n### Before you begin\n\nIn this course you will work with issues and pull requests, as well as edit files. If these things are familiar to you, we recommend you take the [Introduction to GitHub](https://lab.github.com/githubtraining/introduction-to-github) course, first!\n"},"comment":{"url":"https://api.github.com/repos/alexjslessor/hello-github-actions/issues/comments/570804485","html_url":"https://github.com/alexjslessor/hello-github-actions/issues/1#issuecomment-570804485","issue_url":"https://api.github.com/repos/alexjslessor/hello-github-actions/issues/1","id":570804485,"node_id":"MDEyOklzc3VlQ29tbWVudDU3MDgwNDQ4NQ==","user":{"login":"github-learning-lab[bot]","id":37936606,"node_id":"MDM6Qm90Mzc5MzY2MDY=","avatar_url":"https://avatars0.githubusercontent.com/in/10572?v=4","gravatar_id":"","url":"https://api.github.com/users/github-learning-lab%5Bbot%5D","html_url":"https://github.com/apps/github-learning-lab","followers_url":"https://api.github.com/users/github-learning-lab%5Bbot%5D/followers","following_url":"https://api.github.com/users/github-learning-lab%5Bbot%5D/following{/other_user}","gists_url":"https://api.github.com/users/github-learning-lab%5Bbot%5D/gists{/gist_id}","starred_url":"https://api.github.com/users/github-learning-lab%5Bbot%5D/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/github-learning-lab%5Bbot%5D/subscriptions","organizations_url":"https://api.github.com/users/github-learning-lab%5Bbot%5D/orgs","repos_url":"https://api.github.com/users/github-learning-lab%5Bbot%5D/repos","events_url":"https://api.github.com/users/github-learning-lab%5Bbot%5D/events{/privacy}","received_events_url":"https://api.github.com/users/github-learning-lab%5Bbot%5D/received_events","type":"Bot","site_admin":false},"created_at":"2020-01-04T17:41:44Z","updated_at":"2020-01-04T17:41:44Z","author_association":"NONE","body":"### Actions and Workflows\n\nThere are two components to using GitHub Actions that we'll cover:\n\n- the **action** itself\n- a **workflow** that uses action(s)\n\nA workflow can contain many actions. Each action has its own purpose. We'll put the files relating to the action in their own directories.\n\n### Types of Actions\n\nActions come in two types: **container actions** and **JavaScript actions**.\n\nDocker **container actions** allow the environment to be packaged with the GitHub Actions code and can only execute in the GitHub-Hosted Linux environment.\n\n**JavaScript actions** decouple the GitHub Actions code from the environment allowing faster execution but accepting greater dependency management responsibility.\n\n## Step 1: Add a `Dockerfile`\n\nOur action will use a Docker container so it will require a `Dockerfile`. Let's add it now. We won't discuss what each line means in detail, but the important thing to know is that the action will be executed in an environment defined by this file.\n\n### :keyboard: Activity: Create a `Dockerfile` and open a pull request\n\n1. Create a file titled `action-a/Dockerfile` by [using this quick link](https://github.com/alexjslessor/hello-github-actions/new/master?filename=action-a/Dockerfile) or manually:\n    - Create a new branch. _Branches should be named intentionally, so a good name for this branch could be `first-action`_.\n    - On the new branch, create a directory: `action-a`. _Note:_ If you're working on GitHub.com, you can create a directory and a file at the same time by naming the file `action-a/Dockerfile`.\n    - In the `action-a` directory, create a file titled `Dockerfile`.\n1. Fill the `Dockerfile` with the content below:\n    ```Dockerfile\n    FROM debian:9.5-slim\n\n    LABEL \"com.github.actions.name\"=\"Hello World\"\n    LABEL \"com.github.actions.description\"=\"Write arguments to the standard output\"\n    LABEL \"com.github.actions.icon\"=\"mic\"\n    LABEL \"com.github.actions.color\"=\"purple\"\n\n    LABEL \"repository\"=\"http://github.com/octocat/hello-world\"\n    LABEL \"homepage\"=\"http://github.com/actions\"\n    LABEL \"maintainer\"=\"Octocat <octocat@github.com>\"\n\n    ADD entrypoint.sh /entrypoint.sh\n    RUN chmod +x /entrypoint.sh\n    ENTRYPOINT [\"/entrypoint.sh\"]\n    ```\n1. Commit your file\n    - If you're working locally, you will also need stage your file and to push the branch to GitHub.\n1. Open a pull request with your new branch against `master`\n\n<hr>\n<h3 align=\"center\">I'll respond in your new pull request with next steps.</h3>\n"}}
{"actor":{"display_login":"github-learning-lab"}}