Skip to content

Commit

Permalink
Merge pull request #3 from Bounceapp/main
Browse files Browse the repository at this point in the history
Add header argument
  • Loading branch information
agu-z authored Oct 27, 2022
2 parents cb811ce + 0f3a8fc commit 94590de
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 94590de

Please sign in to comment.