Skip to content

Commit 3471fd9

Browse files
Merge pull request #116 from devops-infra/bugfix/pr-number
Bump release to v0.5.4
2 parents 6b6a24f + 44c0782 commit 3471fd9

File tree

4 files changed

+6
-5
lines changed

4 files changed

+6
-5
lines changed

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
phony: help
33

44
# Release tag for the action
5-
VERSION := v0.5.3
5+
VERSION := v0.5.4
66

77
# GitHub Actions bogus variables
88
GITHUB_REF ?= refs/heads/null

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ Features:
3737

3838
```yaml
3939
- name: Run the Action
40-
uses: devops-infra/[email protected].3
40+
uses: devops-infra/[email protected].4
4141
with:
4242
github_token: ${{ secrets.GITHUB_TOKEN }}
4343
source_branch: development
@@ -119,7 +119,7 @@ jobs:
119119
- name: Checkout repository
120120
uses: actions/checkout@v2
121121
- name: Create pull request
122-
uses: devops-infra/[email protected].3
122+
uses: devops-infra/[email protected].4
123123
with:
124124
github_token: ${{ secrets.GITHUB_TOKEN }}
125125
title: Automatic pull request
@@ -141,7 +141,7 @@ jobs:
141141
fetch-depth: 0
142142
- name: Run the Action
143143
if: startsWith(github.ref, 'refs/heads/feature')
144-
uses: devops-infra/[email protected].3
144+
uses: devops-infra/[email protected].4
145145
with:
146146
github_token: ${{ secrets.GITHUB_TOKEN }}
147147
title: ${{ github.event.commits[0].message }}

action.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ outputs:
6969
description: Pull request URL.
7070
runs:
7171
using: docker
72-
image: docker://devopsinfra/action-pull-request:v0.5.3
72+
image: docker://devopsinfra/action-pull-request:v0.5.4
7373
env:
7474
GITHUB_TOKEN: ${{ inputs.github_token }}
7575
branding:

entrypoint.sh

+1
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,7 @@ if [[ -z "${PR_NUMBER}" ]]; then
171171
URL=$(sh -c "${COMMAND}")
172172
# shellcheck disable=SC2181
173173
if [[ "$?" != "0" ]]; then RET_CODE=1; fi
174+
PR_NUMBER=$(gh pr view --json number -q .number "${URL}")
174175
else
175176
echo -e "\nUpdating pull request"
176177
COMMAND="hub api --method PATCH repos/${GITHUB_REPOSITORY}/pulls/${PR_NUMBER} --field 'body=@/tmp/template'"

0 commit comments

Comments
 (0)