From e0396f9da5f78709f46db186eb3390ecaeb5f364 Mon Sep 17 00:00:00 2001 From: GrantBirki Date: Wed, 11 Dec 2024 23:20:59 -0800 Subject: [PATCH] add missing outputs --- README.md | 2 ++ __tests__/schemas/action.schema.yml | 8 ++++++++ action.yml | 4 ++++ 3 files changed, 14 insertions(+) diff --git a/README.md b/README.md index 2ec4824..1ca9aea 100644 --- a/README.md +++ b/README.md @@ -216,6 +216,8 @@ As seen above, we have a single example step. Perhaps you would actually use a r | `fork_label` | The API label field returned for the fork | | `fork_checkout` | The console command presented in the GitHub UI to checkout a given fork locally | | `fork_full_name` | The full name of the fork in "org/repo" format | +| `sha` | The commit sha if being used in the context of a pull request | +| `ref` | The ref if being used in the context of a pull request | ## Allowlist 👩‍🔬 diff --git a/__tests__/schemas/action.schema.yml b/__tests__/schemas/action.schema.yml index 0a5f12d..1c7aebc 100644 --- a/__tests__/schemas/action.schema.yml +++ b/__tests__/schemas/action.schema.yml @@ -238,6 +238,14 @@ outputs: description: type: string required: true + ref: + description: + type: string + required: true + sha: + description: + type: string + required: true initial_reaction_id: description: type: string diff --git a/action.yml b/action.yml index e4d7416..641f5d0 100644 --- a/action.yml +++ b/action.yml @@ -95,6 +95,10 @@ outputs: description: 'The console command presented in the GitHub UI to checkout a given fork locally' fork_full_name: description: 'The full name of the fork in "org/repo" format' + sha: + description: 'The commit sha if being used in the context of a pull request' + ref: + description: 'The ref if being used in the context of a pull request' runs: using: "node20" main: "dist/index.js"