Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release #30

Merged
merged 19 commits into from Apr 20, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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