Skip to content

Commit

Permalink
Merge pull request #25 from 403-html/patch/add-merge-main
Browse files Browse the repository at this point in the history
chore: add merge main to pr branch in workflow
  • Loading branch information
403-html authored Jan 30, 2022
2 parents afd7e5a + 8a23f6f commit 4809a64
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 6 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/pr-semver.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,16 @@ jobs:
if: ${{ github.event.label.name == 'semver' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: reattach HEAD
- name: Reattach HEAD
uses: actions/checkout@v2
with:
ref: ${{ github.event.pull_request.head.ref }}
fetch-depth: 0

- name: Merge main branch to PR branch
uses: pr-mpt/actions-merge-branch@v2
with:
from: "origin/main"

- name: Get current prefix
id: branch-prefix
Expand All @@ -30,6 +34,7 @@ jobs:
exit 1
fi
echo "Branch prefix is valid"
- name: Set next version number based on prefix
run: |
echo "Getting next version number..."
Expand All @@ -46,11 +51,13 @@ jobs:
echo "Error: working branch prefix not found"
exit 1
fi
- name: Setup git
run: |
echo "Setting up git..."
git config --global user.email "${{ secrets.MY_EMAIL }}"
git config --global user.name "${{ secrets.MY_USERNAME }}"
- name: Commit and push changes to working branch
run: |
echo "Committing changes..."
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mochawesome-json-to-md",
"version": "0.6.1",
"version": "0.6.2",
"description": "A repository containing a script to convert JSON reports generated by MochAwesome to Mardown",
"main": "index.js",
"bin": {
Expand Down

0 comments on commit 4809a64

Please sign in to comment.