Skip to content

Commit

Permalink
Add header argument
Browse files Browse the repository at this point in the history
  • Loading branch information
gjsduarte committed Oct 18, 2022
1 parent cb811ce commit 0f3a8fc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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] === '~') {
Expand Down

0 comments on commit 0f3a8fc

Please sign in to comment.