Skip to content

Commit

Permalink
fix: reorder node properties after PR (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
meeroslav authored Dec 17, 2021
1 parent 4625d88 commit cd08fc0
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ inputs:
error-on-no-successful-workflow:
description: "By default, if no successful workflow is found on the main branch to determine the SHA, we will log a warning and use HEAD~1. Enable this option to error and exit instead."
default: "false"
workflow-id:
description: "The ID of the workflow to track or name of the file name. E.g. ci.yml. Defaults to current workflow"
last-successful-event:
description: "The type of event to check for the last successful commit corresponding to that workflow-id, E.g. push, pull-request, release etc"
default: "push"
workflow-id:
description: "The ID of the workflow to track or name of the file name. E.g. ci.yml. Defaults to current workflow"

outputs:
base:
Expand All @@ -31,7 +31,7 @@ runs:
- name: Set base and head SHAs used for nx affected
id: setSHAs
shell: bash
run: node ${{ github.action_path }}/dist/index.js ${{ github.token }} ${{ inputs.main-branch-name }} ${{ inputs.error-on-no-successful-workflow }} ${{ inputs.workflow-id }} ${{ inputs.last-successful-event }}
run: node ${{ github.action_path }}/dist/index.js ${{ github.token }} ${{ inputs.main-branch-name }} ${{ inputs.error-on-no-successful-workflow }} ${{ inputs.last-successful-event }} ${{ inputs.workflow-id }}

- name: Log base and head SHAs used for nx affected
shell: bash
Expand Down
4 changes: 2 additions & 2 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6371,8 +6371,8 @@ const { runId, repo: { repo, owner }, eventName } = github.context;
process.env.GITHUB_TOKEN = process.argv[2];
const mainBranchName = process.argv[3];
const errorOnNoSuccessfulWorkflow = process.argv[4];
const workflowId = process.argv[5];
const lastSuccessfulEvent = process.argv[6];
const lastSuccessfulEvent = process.argv[5];
const workflowId = process.argv[6];

let BASE_SHA;
(async () => {
Expand Down
4 changes: 2 additions & 2 deletions find-successful-workflow.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ const { runId, repo: { repo, owner }, eventName } = github.context;
process.env.GITHUB_TOKEN = process.argv[2];
const mainBranchName = process.argv[3];
const errorOnNoSuccessfulWorkflow = process.argv[4];
const workflowId = process.argv[5];
const lastSuccessfulEvent = process.argv[6];
const lastSuccessfulEvent = process.argv[5];
const workflowId = process.argv[6];

let BASE_SHA;
(async () => {
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"private": true,
"version": "2.1.1",
"version": "2.1.2",
"license": "MIT",
"description": "This package.json is here purely to control the version of the Action, in combination with https://github.com/JamesHenry/publish-shell-action",
"scripts": {
Expand Down

0 comments on commit cd08fc0

Please sign in to comment.