-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Expand file tree
/
Copy pathupdate-testcontainers-version.yml
More file actions
32 lines (29 loc) · 1.04 KB
/
update-testcontainers-version.yml
File metadata and controls
32 lines (29 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
name: Update testcontainers version
on:
release:
types: [ published ]
permissions:
contents: read
jobs:
build:
permissions:
contents: write # for peter-evans/create-pull-request to create branch
pull-requests: write # for peter-evans/create-pull-request to create a PR
if: github.repository == 'testcontainers/testcontainers-java'
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v5
with:
ref: main
- name: Update testcontainers.version property in gradle.properties
run: |
sed -i "s/^testcontainers\.version=.*/testcontainers\.version=${GITHUB_REF_NAME}/g" gradle.properties
git diff
- name: Create Pull Request
uses: peter-evans/create-pull-request@84ae59a2cdc2258d6fa0732dd66352dddae2a412 # v3.10.1
with:
title: Update testcontainers version to ${{ github.ref_name }}
body: |
Update testcontainers version to ${{ github.ref_name }}
branch: update-tc-version
delete-branch: true