Skip to content
Merged
Prev Previous commit
Next Next commit
buildpack-pr-comment action
  • Loading branch information
aarlt committed Jul 7, 2020
commit 4cf50aaa652c5248cd806a0bc5df808d75747ea8
18 changes: 18 additions & 0 deletions .github/actions/buildpack-pr-comment/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: "Add comment to current PR"
description: "Adds a comment to current PR"
inputs:
token:
description: "GitHub access token"
required: true
default: ""
action-id:
description: "GitHub Action ID"
required: true
default: ""
artifact:
description: "Name of the artifact"
required: true
default: "Something like buildpack-ubuntu2004-d12f0d12c9f69baa7b825033b2f9c89acea738bf1ae734efa4b343833f897e1d"
runs:
using: "node12"
main: "dist/index.js"

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

Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
{
"name": "create-issue",
"name": "buildpack-pr-comment",
"version": "1.0.0",
"description": "An action for creating a GitHub issue",
"description": "An action for creating a comment on current PR to save artifact information",
"private": true,
"main": "index.js",
"scripts": {
"build": "tsc"
},
"keywords": [],
"author": "Aaron Powell",
"author": "Alexander Arlt",
"license": "MIT",
"dependencies": {
"@actions/core": "^1.2.3",
"@actions/core": "^1.2.4",
"@actions/github": "^2.1.1"
},
"devDependencies": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ async function run() {
`Artifact: ${core.getInput("artifact")}\n`+
`Commit: ${context.sha}`
});

// core.setOutput("issue-id", newIssue.data.number.toString());
}

run();
33 changes: 0 additions & 33 deletions .github/actions/create-issue/action.yml

This file was deleted.

4 changes: 2 additions & 2 deletions .github/workflows/buildpack-ubuntu2004.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,10 @@ jobs:

- name: Building Action
run: npm i && npm run build
working-directory: ./.github/actions/create-issue
working-directory: ./.github/actions/buildpack-pr-comment

- name: Create Review Issue
uses: ./.github/actions/create-issue
uses: ./.github/actions/buildpack-pr-comment
with:
token: ${{ secrets.GITHUB_TOKEN }}
action-id: ${{ github.run_id }}
Expand Down