Skip to content

Commit

Permalink
adjust workflows for migration (#654)
Browse files Browse the repository at this point in the history
  • Loading branch information
RafalSkolasinski authored Nov 29, 2022
1 parent 686a2bb commit 834a922
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 14 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/changelog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ jobs:
run: |
npm install -g auto-changelog
- name: Generate and commit changelog
run: |
git checkout master
auto-changelog -l 5
git add CHANGELOG.md && git commit -m "Updating CHANGELOG.md on master"
git push
# - name: Generate and commit changelog
# run: |
# git checkout master
# auto-changelog -l 5
# git add CHANGELOG.md && git commit -m "Updating CHANGELOG.md on master"
# git push
10 changes: 5 additions & 5 deletions .github/workflows/draft-release.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Draft New Release
name: V2 Draft New Release

on:
workflow_dispatch:
Expand Down Expand Up @@ -35,7 +35,7 @@ jobs:
RELEASE_TAG="${{ github.event.inputs.version }}"
# Ensure that we do not run on master
if [ "${RELEASE_BRANCH}" == "master" ]; then
if [ "${RELEASE_BRANCH}" == "master" ] || [ "${RELEASE_BRANCH}" == "v2" ]; then
echo "::error::Cannot run this workflow on master branch"
exit 1
fi
Expand Down Expand Up @@ -119,16 +119,16 @@ jobs:
if ${IS_RELEASE_CORE_VERSION}; then
git tag "${RELEASE_TAG}" --force && auto-changelog --tag-pattern ^v\([0-9]\+\.\){2}[0-9]\+$ --ending-version ${RELEASE_TAG} -l 5
else
git tag "${RELEASE_TAG}" --force && auto-changelog -l 5
git tag "${RELEASE_TAG}" --force && auto-changelog -l 5 --ending-version ${RELEASE_TAG}
fi
git add CHANGELOG.md && git commit --amend --no-edit || echo "Nothing to commit"
- name: Generate release-notes.txt
run: |
if ${IS_RELEASE_CORE_VERSION}; then
auto-changelog --tag-pattern ^v\([0-9]\+\.\){2}[0-9]\+$ --ending-version ${RELEASE_TAG} -l 5 -o release-notes.txt
auto-changelog --tag-pattern ^v\([0-9]\+\.\){2}[0-9]\+$ --starting-version ${RELEASE_TAG} --ending-version ${RELEASE_TAG} -l 5 -o release-notes.txt
else
auto-changelog -l 5 -o release-notes.txt
auto-changelog -l 5 --starting-version ${RELEASE_TAG} --ending-version ${RELEASE_TAG} -o release-notes.txt
fi
- name: Upload release notes
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/images.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build docker images
name: V2 Build docker images

on:
push:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: lint
name: V2 Lint
on:
pull_request:
jobs:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml → .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: test
name: V2 Tests
on:
pull_request:
jobs:
Expand Down

0 comments on commit 834a922

Please sign in to comment.