Answer:1 test #41
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Add Labels | |
on: | |
pull_request: | |
types: [ opened, edited, synchronize ] | |
jobs: | |
add_supporters: | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout | |
uses: actions/checkout@v2 | |
- name: add labels | |
uses: actions-ecosystem/action-add-labels@v1 | |
if: ${{ contains( fromJson('[ "tomalaforge", "alcaidio" , "svenson95", "jdegand", "DeveshChau", "stillst", "wandri", "webbomj", "kabrunko-dev", "Sanjar1304"]'), github.actor ) && startsWith(github.event.pull_request.title, 'Answer') }} | |
with: | |
github_token: ${{ secrets.github_token }} | |
labels: supporter | |
add_answers: | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout | |
uses: actions/checkout@v2 | |
- name: add labels | |
uses: actions-ecosystem/action-add-labels@v1 | |
if: ${{ startsWith(github.event.pull_request.title, 'Answer') }} | |
with: | |
github_token: ${{ secrets.github_token }} | |
labels: answer | |
hello_world_job: | |
runs-on: ubuntu-latest | |
name: A job to say hello | |
steps: | |
- name: Hello world action step | |
id: hello | |
uses: ./add-label/ | |
with: | |
who-to-greet: 'Mona the Octocat' | |
# Use the output from the `hello` step | |
- name: Get the output time | |
run: echo "The time was ${{ steps.hello.outputs.time }}" |