Skip to content

Merge pull request #562 from KiraCore/feature/upd_base_img_to_v0_13_4 #57

Merge pull request #562 from KiraCore/feature/upd_base_img_to_v0_13_4

Merge pull request #562 from KiraCore/feature/upd_base_img_to_v0_13_4 #57

Workflow file for this run

name: release/v*.*.* -PR-> master
on:
push:
branches: [ v*.*.*, release/v*.*.* ]
# git ls-remote <URL> | head -1 | sed "s/HEAD//"
jobs:
# isolate signing & repo cloning from docker image
auto-pr:
name: Automated Master Branch PR
runs-on: ubuntu-20.04
permissions:
contents: write
packages: write
id-token: write
pull-requests: write
steps:
# Work around https://github.com/actions/checkout/issues/760
- name: Add safe.directory
run: |
git config --global --add safe.directory /github/workspace
git config --global --add safe.directory $PWD
# ref.: https://github.com/actions/checkout, v3.0.0
- name: Checkout repository
uses: actions/checkout@a12a3943b4bdde767164f792f33f40b04645d846
- name: Extract branch name on pull request
shell: bash
run: |
set -x
git branch -r -l
echo "SOURCE_BRANCH=$(echo ${GITHUB_REF#refs/heads/})" >> $GITHUB_ENV
echo "DEFAULT_BRANCH=${{ github.event.repository.default_branch }}" >> $GITHUB_ENV
- name: Print debug data before publishing
run: |
echo " Source branch: ${{ env.DEFAULT_BRANCH }}"
echo "Default branch: ${{ env.SOURCE_BRANCH }}"
echo " Event name: ${{ github.event_name }}"
echo " Repo. name: ${{ github.event.repository.name }}"
- name: Create PR from a version branch to master after version branch push
# ref. repo-sync/pull-request is broken, using cea2aj/pull-request instead
uses: cea2aj/pull-request@84eb0c3478f13651e5649367941b867ca02d7926
if: startsWith(env.SOURCE_BRANCH, 'release/v') && contains(env.SOURCE_BRANCH, '.')
with:
github_token: ${{ secrets.REPO_ACCESS }}
source_branch: ${{ env.SOURCE_BRANCH }}
destination_branch: ${{ env.DEFAULT_BRANCH}}
pr_title: "${{ env.SOURCE_BRANCH }} -> ${{ env.DEFAULT_BRANCH }}"
pr_label: "kira-automation"
pr_assignee: "asmodat"
pr_allow_empty: true