[Hotfix][DEVSU-2089] SVG size in print #15
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
# This will trigger when master branch gets updated, it will make a PR to develop | |
name: Auto-pr-master-develop | |
# Controls when the workflow will run | |
on: | |
# Triggers the workflow on push or pull request events but only for the develop branch | |
pull_request: | |
branches: [master] | |
types: [closed] | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
# A workflow run is made up of one or more jobs that can run sequentially or in parallel | |
jobs: | |
# This workflow contains a single job called "build" | |
merge-master-to-dev: | |
# The type of runner that the job will run on | |
runs-on: ubuntu-latest | |
# If master pull request is merged | |
if: github.event.pull_request.merged == true | |
# Steps represent a sequence of tasks that will be executed as part of the job | |
steps: | |
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | |
- uses: actions/checkout@v2 | |
with: | |
ref: develop | |
- name: Set Git config | |
run: | | |
git config --local user.email "[email protected]" | |
git config --local user.name "Github Actions" | |
- name: Reset master branch | |
run: | | |
git fetch origin master:master | |
git reset --hard master | |
- name: Read and set version | |
id: versioning | |
run: | | |
PACKAGE_VERSION=$(node -p "require('./package.json').version") | |
echo ::set-output name=tag::${PACKAGE_VERSION} | |
- name: Create Pull Request | |
uses: peter-evans/[email protected] | |
with: | |
branch: merge-master-to-dev-${{ steps.versioning.outputs.tag }} | |
title: update develop from master-${{ steps.versioning.outputs.tag }} | |
commit-message: auto PR master to develop |