mirror of
https://github.com/Raghu-Ch/angular-challenges.git
synced 2026-02-10 04:43:03 -05:00
feat: improve action
This commit is contained in:
25
.github/workflows/label-issue.yml
vendored
25
.github/workflows/label-issue.yml
vendored
@@ -10,41 +10,28 @@ jobs:
|
||||
steps:
|
||||
- name: checkout
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Install dependencies
|
||||
run: npm i @actions/core @actions/github
|
||||
- name: add labels
|
||||
|
||||
- name: add supporter 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
|
||||
- name: add answer 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:
|
||||
# To use this repository's private action,
|
||||
# you must check out the repository
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
- name: Install Dependencies
|
||||
run: npm install @actions/core @actions/github
|
||||
|
||||
- name: Hello world action step
|
||||
uses: ./.github/github-action/ # Uses an action in the root directory
|
||||
uses: ./.github/github-action/
|
||||
id: hello
|
||||
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 }}"
|
||||
|
||||
Reference in New Issue
Block a user