From 4a90331f26809eb852c73431e90bec5b9c333c98 Mon Sep 17 00:00:00 2001
From: KeisukeYamashita <19yamashita15@gmail.com>
Date: Mon, 13 Feb 2023 11:06:43 +0900
Subject: [PATCH] feat: use workflow GitHub token as default GITHUB_TOKEN
---
README.md | 5 +----
action.yml | 3 ++-
2 files changed, 3 insertions(+), 5 deletions(-)
diff --git a/README.md b/README.md
index f9ef9e1..e63353d 100644
--- a/README.md
+++ b/README.md
@@ -30,7 +30,6 @@ jobs:
steps:
- uses: wow-actions/welcome@v1
with:
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
FIRST_ISSUE: |
👋 @{{ author }}
Thanks for opening your first issue here! Be sure to follow the issue template!
@@ -54,7 +53,7 @@ Various inputs are defined to let you configure the action:
| Name | Description | Default |
| --- | --- | --- |
-| `GITHUB_TOKEN` | The GitHub token for authentication. | N/A |
+| `GITHUB_TOKEN` | The GitHub token for authentication. | `${{ github.token }}` |
| `FIRST_ISSUE`
or
`FIRST_ISSUE_COMMENT` | Comment to be posted to on first time issues. | |
| `FIRST_ISSUE_REACTIONS` | Reactions to be add to comment on first time issues. | |
| `FIRST_PR`
or
`FIRST_PR_COMMENT` | Comment to be posted to on PRs from first time contributors in your repository. | |
@@ -91,7 +90,6 @@ jobs:
steps:
- uses: wow-actions/welcome@v1
with:
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
FIRST_ISSUE_REACTIONS: '+1, hooray, rocket, heart'
FIRST_ISSUE_COMMENT: |
👋 @{{ author }}
@@ -111,7 +109,6 @@ jobs:
steps:
- uses: wow-actions/welcome@v1
with:
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
FIRST_PR_REACTIONS: '+1, hooray, rocket, heart'
FIRST_PR_COMMENT: |
👋 @{{ author }}
diff --git a/action.yml b/action.yml
index 5a103ed..26353ae 100644
--- a/action.yml
+++ b/action.yml
@@ -4,7 +4,8 @@ author: bubkoo
inputs:
GITHUB_TOKEN:
description: Your GitHub token for authentication.
- required: true
+ required: false
+ default: ${{ github.token }}
FIRST_ISSUE:
description: Comment to be posted to on first time issues.