Skip to content

Commit

Permalink
Merge pull request #30 from HardNorth/develop
Browse files Browse the repository at this point in the history
Release
  • Loading branch information
HardNorth committed Apr 20, 2022
2 parents 2c8c390 + 784c4ea commit 462bc5a
Show file tree
Hide file tree
Showing 6 changed files with 54 additions and 28 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Expand Up @@ -4,7 +4,7 @@ on:
push:
branches:
- '*'
- '!master'
- '!main'
paths-ignore:
- README.md
- CHANGELOG.md
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/release.yml
Expand Up @@ -3,7 +3,7 @@ name: Release
on:
push:
branches:
- master
- main
paths-ignore:
- README.md
- CHANGELOG.md
Expand Down Expand Up @@ -39,7 +39,7 @@ jobs:
node-version: 12.x

- name: Generate versions
uses: HardNorth/github-version-generate@v1.1.0
uses: HardNorth/github-version-generate@v1.1.1
with:
version-source: file
version-file: ${{ env.VERSION_FILE }}
Expand Down Expand Up @@ -113,19 +113,19 @@ jobs:
prerelease: false

- name: Checkout develop branch
if: ${{github.ref}} == 'master'
if: ${{github.ref}} == 'main'
uses: actions/checkout@v2
with:
ref: 'develop'
fetch-depth: 0

- name: Merge release branch into develop
id: mergeIntoDevelop
if: ${{github.ref}} == 'master'
if: ${{github.ref}} == 'main'
run: |
git merge -m 'Merge master branch into develop after a release' origin/master
git merge -m 'Merge main branch into develop after a release' origin/main
git status | (! grep -Fq 'both modified:') || git status | grep -F 'both modified:' \
| { echo -e 'Unable to merge master into develop, merge conflicts:'; (! grep -Eo '[^ ]+$') }
| { echo -e 'Unable to merge main into develop, merge conflicts:'; (! grep -Eo '[^ ]+$') }
- name: Update version file
id: versionFileUpdate
Expand Down
2 changes: 2 additions & 0 deletions CHANGELOG.md
@@ -1,6 +1,8 @@
# Changelog

## [Unreleased]
### Changed
- Some security fixes, by @dependabot

## [1.1.1]
### Changed
Expand Down
2 changes: 1 addition & 1 deletion README.md
@@ -1,4 +1,4 @@
# Version generation for GitHub Actions
# Version generation and bump for GitHub Actions
[![CI Build](https://github.com/HardNorth/github-version-generate/actions/workflows/ci.yml/badge.svg)](https://github.com/HardNorth/github-version-generate/actions/workflows/ci.yml)
[![License](https://img.shields.io/badge/License-Apache%202.0-brightgreen.svg)](https://opensource.org/licenses/Apache-2.0)

Expand Down
62 changes: 43 additions & 19 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
Expand Up @@ -29,7 +29,7 @@
"@actions/exec": "1.0.4",
"@actions/github": "4.0.0",
"escape-html": "1.0.3",
"moment": "2.29.1",
"moment": "2.29.2",
"xregexp": "4.4.0"
},
"bugs": {
Expand Down

0 comments on commit 462bc5a

Please sign in to comment.