Skip to content

Merge pull request #1158 from gettakaro/fix-player-expiry #42

Merge pull request #1158 from gettakaro/fix-player-expiry

Merge pull request #1158 from gettakaro/fix-player-expiry #42

# Takaro merges feature branches into the development branch first
# and then merges the development branch into the main branch.
# This workflow automates the process of creating a pull request from the development branch to the main branch.
name: Create dev to main PR
on:
push:
branches:
- development
jobs:
mainPromotion:
runs-on: ubuntu-latest
steps:
- name: Generate token
id: generate_token
uses: tibdex/github-app-token@v2
with:
app_id: ${{ secrets.TAKARO_CI_APP_ID }}
private_key: ${{ secrets.TAKARO_CI_APP_PRIV_KEY }}
- uses: actions/checkout@v4
with:
ref: main
token: ${{ steps.generate_token.outputs.token }}
- name: Reset promotion branch
run: |
git fetch origin development:development
git reset --hard development
- name: Create Pull Request
uses: peter-evans/create-pull-request@v6
with:
branch: main-promotion
labels: skip-changelog
token: ${{ steps.generate_token.outputs.token }}
title: Merge development into main
body: |
This PR merges the development branch into the main branch.
It is created automatically by the Takaro CI bot.