Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
RiabushenkoA authored Dec 25, 2024
0 parents commit a0a27b8
Show file tree
Hide file tree
Showing 14 changed files with 579 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Bug fixes and minor improvements
32 changes: 32 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Invoker

on:
pull_request:
types: [closed]
push:
branches:
- develop

jobs:
trigger-workflow:
runs-on: ubuntu-latest
steps:
- name: Invoke Dev Workflow
if: github.event_name == 'push' && github.ref == 'refs/heads/develop'
uses: benc-uk/workflow-dispatch@v1
with:
workflow: ${{ vars.GH_BUILD_WORKFLOW }}
repo: ${{ vars.GH_BUILD_REPOSITORY }}
token: ${{ secrets.GH_PAT_TOKEN }}
ref: develop
inputs: '{"repository_url": "${{ github.repository }}","ref":"${{ github.ref }}", "sha":"${{ github.sha }}", "commit_url" : "${{ github.event.head_commit.url }}", "commit_message" : "${{ github.event.head_commit.message }}"}'

- name: Invoke Prod Workflow
if: github.event.pull_request.merged == true && github.event.pull_request.base.ref == 'main'
uses: benc-uk/workflow-dispatch@v1
with:
workflow: ${{ vars.GH_BUILD_WORKFLOW }}
repo: ${{ vars.GH_BUILD_REPOSITORY }}
token: ${{ secrets.GH_PAT_TOKEN }}
ref: main
inputs: '{"repository_url": "${{ github.repository }}","ref":"${{ github.ref }}", "pullrequest_id":"${{ github.event.pull_request.number }}"}'
Loading

0 comments on commit a0a27b8

Please sign in to comment.