Skip to content

Commit

Permalink
Feature: Output the id of the last successful run (#13)
Browse files Browse the repository at this point in the history
* feat: add run id as second output

default to current run's id if no run is found

* doc: add run id in README and metadata

* fix: indentation

* rebuild index.js

---------

Co-authored-by: dhofrichter <dhofrichter@samhammer.de>
  • Loading branch information
AFKBETO and domi2120 authored May 8, 2024
1 parent aa765a1 commit 4f651e1
Show file tree
Hide file tree
Showing 4 changed files with 26,532 additions and 5,517 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,3 +49,4 @@ If your workflow runs are expected to contain no-longer existing commit SHAs (e.
| Name | Description | Default |
| --- | --- | --- |
| `sha` | Sha of the workflow-run matching the requirements. | `${{ github.sha }}` |
| `run-id` | Id of the workflow-run matching the requirements. | `${{ github.run_id }}` |
5 changes: 5 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@ inputs:
description: 'Verify SHA of workflow run commit against list of commit SHAs in repository'
required: false
default: 'false'
outputs:
sha:
description: 'Sha of the workflow-run matching the requirements.'
run-id:
description: 'Id of the workflow-run matching the requirements.'
runs:
using: 'node20'
main: 'dist/index.js'
Loading

0 comments on commit 4f651e1

Please sign in to comment.