Skip to content

Software workflow automation with GitHub Actions @ Open Source 101: Columbia

Notifications You must be signed in to change notification settings

imjohnbo/101-beyond-ci-cd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

Open Source 101: Beyond CI/CD

🎯 Goal

Use open source GitHub Actions to automate tasks and discuss making your very own GitHub Action.

💻 Steps

GitHub Actions can do much more than CI/CD. In this section, we'll consider how to use existing open source actions for three tasks:

1. Apply a triage label to new issues

Hints
  1. Browse GitHub Marketplace, this awesome list of actions, or Google for ideas.

  2. The actions org has some interesting actions, but so does the community 👀.

Solution
name: "Triage"
on:
  issues:
    types: [opened]

jobs:
  triage:
    runs-on: ubuntu-latest
    steps:
      - uses: Naturalclar/issue-action@v1.0.0
        with:
          keywords: '[""]'
          labels: '["triage"]'
          github-token: "${{ secrets.GITHUB_TOKEN }}"

2. Greet first time contributors (pull request or issue) with a greeting like "Hello, new contributor!"

Hints
  1. Browse GitHub Marketplace, this awesome list of actions, or Google for ideas.

  2. The actions org has some interesting actions, but so does the community 👀.

Solution
name: Greet first time contributors

on:
  issues:
    types: [opened]

jobs:
  greet:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/first-interaction@v1
      with:
        repo-token: ${{ secrets.GITHUB_TOKEN }}
        issue-message: 'Welcome! Thanks for opening an issue in this project!'

3. (Together) Make our very own Hello World action

🏅 Extra credit

About

Software workflow automation with GitHub Actions @ Open Source 101: Columbia

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published