mirror of
https://github.com/Raghu-Ch/angular-challenges.git
synced 2026-02-10 12:53:03 -05:00
fix: repo
This commit is contained in:
4
.github/github-action/action.yml
vendored
4
.github/github-action/action.yml
vendored
@@ -5,6 +5,10 @@ inputs:
|
|||||||
description: A GitHub token.
|
description: A GitHub token.
|
||||||
required: false
|
required: false
|
||||||
default: ${{ github.token }}
|
default: ${{ github.token }}
|
||||||
|
repo:
|
||||||
|
description: The owner and repository name.
|
||||||
|
required: false
|
||||||
|
default: ${{ github.repository }}
|
||||||
runs:
|
runs:
|
||||||
using: 'node20'
|
using: 'node20'
|
||||||
main: 'index.js'
|
main: 'index.js'
|
||||||
|
|||||||
5
.github/github-action/index.js
vendored
5
.github/github-action/index.js
vendored
@@ -25,10 +25,7 @@ async function run() {
|
|||||||
const githubToken = core.getInput('github_token');
|
const githubToken = core.getInput('github_token');
|
||||||
|
|
||||||
const [owner, repo] = core.getInput('repo').split('/');
|
const [owner, repo] = core.getInput('repo').split('/');
|
||||||
const number =
|
const number = github.context.issue.number;
|
||||||
core.getInput('number') === ''
|
|
||||||
? github.context.issue.number
|
|
||||||
: parseInt(core.getInput('number'));
|
|
||||||
|
|
||||||
const octokit = github.getOctokit(githubToken);
|
const octokit = github.getOctokit(githubToken);
|
||||||
await octokit.rest.issues.addLabels({
|
await octokit.rest.issues.addLabels({
|
||||||
|
|||||||
2
.github/workflows/label-issue.yml
vendored
2
.github/workflows/label-issue.yml
vendored
@@ -17,4 +17,4 @@ jobs:
|
|||||||
- name: Add labels
|
- name: Add labels
|
||||||
uses: ./.github/github-action/
|
uses: ./.github/github-action/
|
||||||
with:
|
with:
|
||||||
github_token: ${{ secrets.github_token }}
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|||||||
Reference in New Issue
Block a user