Skip to content

Commit 2459021

Browse files
Update action versions in workflows for improved stability and functionality (#147)
Co-authored-by: ChristophShyper <[email protected]>
1 parent 54ca1f5 commit 2459021

File tree

4 files changed

+10
-9
lines changed

4 files changed

+10
-9
lines changed

.github/workflows/AUTO-RELEASE.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ jobs:
6363
echo "✅ Updated Makefile fallback version to: ${VERSION}"
6464
6565
- name: Create release branch and commit changes
66-
uses: devops-infra/action-commit-push@master
66+
uses: devops-infra/action-commit-push@v0.11.0
6767
with:
6868
github_token: ${{ secrets.GITHUB_TOKEN }}
6969
target_branch: release/${{ github.event.inputs.version }}

.github/workflows/AUTO-VERSION.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ jobs:
149149
echo "✅ Updated Makefile fallback version to: ${VERSION}"
150150
151151
- name: Create release branch and commit changes
152-
uses: devops-infra/action-commit-push@master
152+
uses: devops-infra/action-commit-push@v0.11.0
153153
with:
154154
github_token: ${{ secrets.GITHUB_TOKEN }}
155155
target_branch: release/${{ needs.check_for_release.outputs.new_version }}

.github/workflows/PUSH-OTHER.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ jobs:
107107
curl -LsS https://raw.githubusercontent.com/devops-infra/.github/master/PULL_REQUEST_TEMPLATE.md -o .tmp/PULL_REQUEST_TEMPLATE.md
108108
109109
- name: PR - bugfix (conditional)
110-
if: startsWith(github.ref, 'refs/heads/bug')
110+
if: startsWith(github.ref, 'refs/heads/bug') || startsWith(github.ref, 'refs/heads/fix') || startsWith(github.ref, 'refs/heads/hotfix')
111111
uses: devops-infra/[email protected]
112112
with:
113113
github_token: ${{ secrets.GITHUB_TOKEN }}
@@ -160,7 +160,7 @@ jobs:
160160

161161
- name: PR - release (conditional)
162162
if: startsWith(github.ref, 'refs/heads/release')
163-
uses: devops-infra/action-pull-request@master
163+
uses: devops-infra/action-pull-request@v0.6.0
164164
with:
165165
github_token: ${{ secrets.GITHUB_TOKEN }}
166166
assignee: ${{ github.actor }}
@@ -169,7 +169,7 @@ jobs:
169169
get_diff: true
170170

171171
- name: PR - other branches (conditional)
172-
if: ${{ !(startsWith(github.ref, 'refs/heads/bug') || startsWith(github.ref, 'refs/heads/dep') || startsWith(github.ref, 'refs/heads/doc') || startsWith(github.ref, 'refs/heads/feat') || startsWith(github.ref, 'refs/heads/test')) }}
172+
if: ${{ !(startsWith(github.ref, 'refs/heads/bug') || startsWith(github.ref, 'refs/heads/dep') || startsWith(github.ref, 'refs/heads/doc') || startsWith(github.ref, 'refs/heads/feat') || startsWith(github.ref, 'refs/heads/test')) }} || startsWith(github.ref, 'refs/heads/fix') || startsWith(github.ref, 'refs/heads/hotfix')) }}
173173
uses: devops-infra/[email protected]
174174
with:
175175
github_token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/RELEASE.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,9 @@ jobs:
4747
echo "Updated Makefile fallback version to: ${VERSION}"
4848
4949
- name: Create Release Pull Request
50-
uses: peter-evans/create-pull-request@v7.0.5
50+
uses: devops-infra/action-pull-request@v0.6.0
5151
with:
52-
token: ${{ secrets.GITHUB_TOKEN }}
53-
commit-message: "Update version to ${{ steps.version.outputs.version }} in action.yml and Makefile"
52+
github_token: ${{ secrets.GITHUB_TOKEN }}
5453
title: "🚀 Release ${{ steps.version.outputs.version }}"
5554
body: |
5655
## Release ${{ steps.version.outputs.version }}
@@ -73,7 +72,9 @@ jobs:
7372
- [ ] All tests pass
7473
7574
**⚠️ Important:** Once merged, this will immediately publish Docker images to production registries.
76-
base: master
75+
target_branch: master
76+
source_branch: ${{ steps.version.outputs.branch }}
77+
label: release
7778

7879
build_and_publish:
7980
name: Build & Publish Release

0 commit comments

Comments
 (0)