Skip to content

Commit

Permalink
test 5.6
Browse files Browse the repository at this point in the history
  • Loading branch information
DarylTodosichuk committed Oct 24, 2024
1 parent 73fa560 commit dcb6460
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 16 deletions.
40 changes: 25 additions & 15 deletions .github/workflows/hotfix-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,31 +4,41 @@ name: Patch - Hotfix create PR
on:
workflow_dispatch:
inputs:
environment:
description: 'Hotfix - compare: branch'
default: 'dev'
pr_base:
description: 'Hotfix - base: branch'
default: 'main'
required: true
type: string
pr_title:
description: 'Hotfix - Title for the pull request'
default: 'Hotfix to Main Release: yyyy-mm-dd'
default: 'Hotfix to Main Release'
required: true
type: string
jobs:
setup:
runs-on: ubuntu-latest
environment: ${{ inputs.pr_base }}
steps:
- name: Get variables
run: |
echo "target=$TARGET_ENV "
echo "base=$GITHUB_REF_NAME"
echo "Environment: $TARGET_ENV OC_TARGET_PROJECT=$OC_TARGET_PROJECT"
echo "Environment: $TARGET_ENV JFROG_REPO_PATH=$JFROG_REPO_PATH"
echo "..."
env | sort
create-pr:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4

# - name: Install GitHub CLI
# run: sudo apt-get install gh -y

- name: Create pull request
id: create_pr
uses: peter-evans/create-pull-request@v5
with:
token: ${{ secrets.GITHUB_TOKEN }}
source: ${{ github.ref }}
destination: main
title: ${{ github.event.inputs.pr_title }}
body: ${{ github.event.inputs.pr_body }}
branch: hotfix-pr-${{ github.ref }}
env:
GITHUB_TOKEN: ${{ secrets.GH_API_TOKEN }}
run: |
gh auth login --with-token <<< "${{ secrets.GH_API_TOKEN }}"
gh pr create --base ${{ inputs.pr_base }} --head ${{ github.ref }} --title "${{ inputs.pr_title }}" --body "This is a new hotfix PR"
3 changes: 2 additions & 1 deletion applications/scripts/datafix-ab#005.sql
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@ test 1
test 2
test 3
test 4
test 5
test 5
test 6

0 comments on commit dcb6460

Please sign in to comment.