Skip to content

Instantly share code, notes, and snippets.

@nashmaniac
Last active June 7, 2020 17:16
Show Gist options
  • Save nashmaniac/35953ea221174c9db2429d49745bc9ca to your computer and use it in GitHub Desktop.
Save nashmaniac/35953ea221174c9db2429d49745bc9ca to your computer and use it in GitHub Desktop.
name: Test Workflow
on: push
jobs:
first-job:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Run Action
# we can give directory path that contains action.yaml or repo address in username/repository_name@version format
# in our case it would be nashmaniac/[email protected] where v1.0 is the version of action
# for now we will give directory path. The directory must contain action.yaml
uses: ./
# pass user input as arguments
with:
title: Build Failed
token: ${{secrets.GITHUB_TOKEN}} # default token in GitHub Workflow
assignees: ${{github.actor}} # actor who started the workflow
labels: worflow-failed
body: Workflow failed for commit ${{github.sha}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment