From 0f3a8fc935b336b9b883a1740ae2fad1fb99fa0b Mon Sep 17 00:00:00 2001 From: Guilherme Duarte Date: Tue, 18 Oct 2022 17:00:28 +0100 Subject: [PATCH] Add header argument --- action.yml | 4 ++++ index.js | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/action.yml b/action.yml index c6f868fb..4b323200 100644 --- a/action.yml +++ b/action.yml @@ -13,6 +13,10 @@ inputs: new-schema: description: 'New schema location' required: true + header: + description: 'Header to use in the comment' + required: false + default: '## 🗞 GraphQL Summary' runs: using: 'node12' main: 'index.js' \ No newline at end of file diff --git a/index.js b/index.js index 74a58512..85e4d525 100644 --- a/index.js +++ b/index.js @@ -3,7 +3,7 @@ const github = require("@actions/github"); const {getDiff} = require("graphql-schema-diff"); const path = require("path"); -const header = "## 🗞 GraphQL Summary" +const header = core.getInput("header"); function resolveHome(filepath) { if (filepath[0] === '~') {