Generated SDK 6201 from COR-46191/fix_pipelines #9
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#name: Pull Request Action | |
#on: | |
# push: | |
# branches-ignore: | |
# - master | |
#jobs: | |
# create-pull-request: | |
# runs-on: ubuntu-latest | |
# steps: | |
# - name: Check out repository code | |
# uses: actions/checkout@v4 | |
# | |
# - name: Get last commit message | |
# id: last_commit | |
# run: echo "::set-output name=commit_message::$(git log -1 --pretty=%B)" | |
# | |
# - name: Get branch name | |
# id: branch_name | |
# run: echo "::set-output name=branch_name::$(echo ${GITHUB_REF#refs/heads/})" | |
# | |
# - name: pull-request | |
# uses: peter-evans/create-pull-request@v6 | |
# with: | |
# labels: | | |
# report | |
# automated pr | |
# title: ${{ steps.last_commit.outputs.commit_message }} | |
# body: | | |
# This is an auto-generated pull request. | |
# ${{ steps.last_commit.outputs.commit_message }} | |
# draft: false | |
# base: master | |
# branch: ${{ steps.branch_name.outputs.branch_name }} | |
#jobs: | |
# action-pull-request: | |
# runs-on: ubuntu-latest | |
# steps: | |
# - name: Checkout repository | |
# uses: actions/checkout@v2 | |
# with: | |
# fetch-depth: 0 | |
# - name: Run the Action | |
# uses: devops-infra/[email protected] | |
# with: | |
# github_token: ${{ secrets.GITHUB_TOKEN }} | |
# title: ${{ github.event.commits[0].message }} | |
# assignee: ${{ github.actor }} | |
# reviewer: asafs932,zoharsf | |
# label: automatic,feature | |
#jobs: | |
# action-pull-request: | |
# runs-on: ubuntu-latest | |
# steps: | |
# - name: Checkout repository | |
# uses: actions/checkout@v2 | |
# - name: Create pull request | |
# run: | | |
# gh pr create --title ${{ github.event.commits[0].message }} --body "Automated PR" --base master --head ${{ github.ref }} | |
name: Create Pull Request | |
on: | |
push: | |
branches: | |
- 'fireblocks-api-spec/generated/*' | |
jobs: | |
create-pull-request: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out repository code | |
uses: actions/checkout@v4 | |
- name: Set up GitHub CLI | |
uses: cli/cli-action@v2 | |
- name: Authenticate GitHub CLI | |
run: gh auth login --with-token | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Create pull request | |
run: | | |
gh pr create \ | |
--title "Auto-generated PR for ${{ github.event.commits[0].message }}" \ | |
--body "This PR was automatically generated." \ | |
--base master \ | |
--head ${{ github.ref }} |