Skip to content

Commit

Permalink
feat: update readme to include new version change (#729)
Browse files Browse the repository at this point in the history
Update readme to include new version change
  • Loading branch information
dsotirakis authored Jan 29, 2025
1 parent 9294a97 commit 8fe61d1
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions actions/find-pr-for-commit/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ Here is an example of how to use the `Find PR for Commit` action:
You might use this if you want to comment on a PR from a workflow triggered by a
push event, e.g. after merging to `main`.

<!-- x-release-please-start-version -->

```yaml
on:
push:
Expand All @@ -45,7 +47,7 @@ jobs:
steps:
- name: Find PR for current commit
id: find-pr
uses: grafana/shared-workflows/actions/find-pr-for-commit@main
uses: grafana/shared-workflows/actions/find-pr-for-commit@find-pr-for-commit-v1.0.0

- name: Use PR number
run: echo "PR Number is ${{ steps.find-pr.outputs.pr_number }}"
Expand All @@ -68,7 +70,7 @@ jobs:
steps:
- name: Find PR for specific commit
id: find-pr
uses: grafana/shared-workflows/actions/find-pr-for-commit@main
uses: grafana/shared-workflows/actions/find-pr-for-commit@find-pr-for-commit-v1.0.0
with:
commitrev: "1234567890abcdef1234567890abcdef12345678"

Expand All @@ -93,7 +95,7 @@ jobs:
steps:
- name: Find PR for named revision
id: find-pr
uses: grafana/shared-workflows/actions/find-pr-for-commit@main
uses: grafana/shared-workflows/actions/find-pr-for-commit@find-pr-for-commit-v1.0.0
with:
commitrev: "HEAD~2"

Expand All @@ -118,7 +120,7 @@ jobs:
steps:
- name: Find PR for commit in another repository
id: find-pr
uses: grafana/shared-workflows/actions/find-pr-for-commit@main
uses: grafana/shared-workflows/actions/find-pr-for-commit@find-pr-for-commit-v1.0.0
with:
owner: "grafana"
repo: "grafana"
Expand All @@ -131,3 +133,5 @@ jobs:

Note that `permissions` are not required in this case, as they only affect the
default `${{ github.token }}` and we are supplying our own.

<!-- x-release-please-end-version -->

0 comments on commit 8fe61d1

Please sign in to comment.