Skip to content

Commit

Permalink
Merge pull request #1 from RedEyeMods/added/initial/action-setup
Browse files Browse the repository at this point in the history
Setup basic Javascript action
  • Loading branch information
wwwDayDream authored Jun 16, 2024
2 parents 9b5ccf4 + f21ab4c commit 2390d77
Show file tree
Hide file tree
Showing 4 changed files with 286 additions and 0 deletions.
10 changes: 10 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
name: 'copy-labels-action'
description: "A GitHub action that copies the labels from one repository to another."
inputs:
token:
description: 'The token to use.'
require: false
default: ${{ github.token }}
runs:
using: 'node20'
main: 'index.js'
7 changes: 7 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
const core = require('@actions/core');
const github = require('@actions/github');

(async() => {
const octokit = github.getOctokit(core.getInput('token'));

})();
253 changes: 253 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 16 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"name": "copy-labels-action",
"version": "1.0.0",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [],
"author": "",
"license": "ISC",
"description": "",
"dependencies": {
"@actions/core": "^1.10.1",
"@actions/github": "^6.0.0"
}
}

0 comments on commit 2390d77

Please sign in to comment.