Skip to content

Commit

Permalink
fix(publishing): Fix indent in lerna-release-pr.yml GHA workflow (#9446)
Browse files Browse the repository at this point in the history
  • Loading branch information
christopherthielen committed Jul 16, 2021
1 parent 5099b47 commit f6b3788
Showing 1 changed file with 46 additions and 47 deletions.
93 changes: 46 additions & 47 deletions .github/workflows/lerna-release-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,60 +12,59 @@ on:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: ${{ env.NODE_VERSION }}

- uses: actions/setup-node@v1
with:
node-version: ${{ env.NODE_VERSION }}
- name: Get yarn cache
id: yarn-cache
run: echo "::set-output name=dir::$(yarn cache dir)"

- name: Get yarn cache
id: yarn-cache
run: echo "::set-output name=dir::$(yarn cache dir)"
- uses: actions/cache@v1
with:
path: ${{ steps.yarn-cache.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- uses: actions/cache@v1
with:
path: ${{ steps.yarn-cache.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Install Dependencies
run: yarn --frozen-lockfile

- name: Install Dependencies
run: yarn --frozen-lockfile
- name: Bump packages
run: npx lerna version --conventional-commits --yes

- name: Bump packages
run: npx lerna version --conventional-commits --yes
- name: Get bumped packages
id: bumps
run: git log -1 --pretty=%B |

- name: Get bumped packages
id: bumps
run: git log -1 --pretty=%B |
- name: Create Pull Request
id: createpullrequest
if: ${{ steps.bumps.outputs.bumps != '' }}
uses: peter-evans/create-pull-request@v3
with:
commit-message: 'chore(package): Publish ${{ steps.bumps.outputs.bumps }}'
title: 'chore(package): Publish ${{ steps.bumps.outputs.bumps }}'
body: |
chore(package): Publish ${{ steps.bumps.outputs.bumps }}
- name: Create Pull Request
id: createpullrequest
if: ${{ steps.bumps.outputs.bumps != '' }}
uses: peter-evans/create-pull-request@v3
with:
commit-message: 'chore(package): Publish ${{ steps.bumps.outputs.bumps }}'
title: 'chore(package): Publish ${{ steps.bumps.outputs.bumps }}'
body: |
chore(package): Publish ${{ steps.bumps.outputs.bumps }}
```
${{ steps.bumps.outputs.changelog }}
```
```
${{ steps.bumps.outputs.changelog }}
```
Auto-generated by `.github/workflows/lerna-release-pr.yml`
Auto-generated by `.github/workflows/lerna-release-pr.yml`
- name: Apply Merge Label
if: ${{ steps.createpullrequest.outputs.pr_number != '' }}
uses: actions/github-script@0.9.0
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
await github.issues.addLabels({
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: ${{ steps.createpullrequest.outputs.pr_number }},
labels: ['ready to merge']
});
- name: Apply Merge Label
if: ${{ steps.createpullrequest.outputs.pr_number != '' }}
uses: actions/github-script@0.9.0
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
await github.issues.addLabels({
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: ${{ steps.createpullrequest.outputs.pr_number }},
labels: ['ready to merge']
});

0 comments on commit f6b3788

Please sign in to comment.