Skip to content

Update testcontainers version #39

Update testcontainers version

Update testcontainers version #39

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@v4
with:
ref: main
- name: Update testcontainers.version property in gradle.properties
run: |
sed -i "s/^testcontainers\.version=.*/testcontainers\.version=${GITHUB_REF##*/}/g" gradle.properties
git diff
- name: Create Pull Request
uses: peter-evans/create-pull-request@5e914681df9dc83aa4e4905692ca88beb2f9e91f # v3.10.1
with:
title: Update testcontainers version to ${GITHUB_REF##*/}
body: |
Update testcontainers version to ${GITHUB_REF##*/}
branch: update-tc-version
delete-branch: true