From b0e68c40525f5e26832fbab872d3ad57b2700d03 Mon Sep 17 00:00:00 2001 From: Thomas Eizinger Date: Sat, 22 Feb 2020 19:51:16 +1100 Subject: [PATCH 1/2] Escape & in url to make it work (hopefully) --- .github/workflows/draft-new-release.yml | 5 +++-- .github/workflows/publish-new-release.yml | 3 +-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/draft-new-release.yml b/.github/workflows/draft-new-release.yml index 6d3eb02..5ceca15 100644 --- a/.github/workflows/draft-new-release.yml +++ b/.github/workflows/draft-new-release.yml @@ -8,7 +8,8 @@ jobs: draft-new-release: name: "Draft a new release" runs-on: ubuntu-latest - if: startsWith(github.event.issue.title, 'Release version') && contains(github.event.issue.labels.*.name, 'release') # only run for issues with a specific title and label + # Only run for issues with a specific title and label. Not strictly required but makes finding the release issue again later easier. + if: startsWith(github.event.issue.title, 'Release version') && contains(github.event.issue.labels.*.name, 'release') steps: - uses: actions/checkout@v2 @@ -62,7 +63,7 @@ jobs: # We are claiming things here based on the `publish-new-release.yml` workflow. # You should obviously adopt it to say the truth depending on your release workflow :) body: | - Hi ${{ github.event.issue.user.login }}! + Hi @${{ github.event.issue.user.login }}! This PR was created in response to this release issue: #${{ github.event.issue.number }}. I've updated the changelog and bumped the versions in the manifest files in this commit: ${{ steps.make-commit.outputs.commit }}. diff --git a/.github/workflows/publish-new-release.yml b/.github/workflows/publish-new-release.yml index 2ef95db..ae48aea 100644 --- a/.github/workflows/publish-new-release.yml +++ b/.github/workflows/publish-new-release.yml @@ -34,8 +34,7 @@ jobs: # Hence, we close it here "manually" - name: Close release issue run: | - - RELEASE_ISSUE_URL=$(curl https://api.github.com/repos/${{ github.repository }}/issues?labels=release&state=open | jq -r '.[1].url') + RELEASE_ISSUE_URL=$(curl https://api.github.com/repos/${{ github.repository }}/issues\?labels=release\&state=open | jq -r '.[0].url') curl \ -X PATCH \ From 24b88434f61e292a35e9746b85cb4129bbfaa84e Mon Sep 17 00:00:00 2001 From: GitHub actions Date: Sat, 22 Feb 2020 08:52:35 +0000 Subject: [PATCH 2/2] Prepare release 1.3.0 --- CHANGELOG.md | 6 +++++- package.json | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f0520ce..67372c2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## [1.3.0] - 2020-02-22 + ## [1.2.0] - 2020-02-17 ### Changed @@ -31,7 +33,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Everything since the beginning! -[Unreleased]: https://github.com/thomaseizinger/github-action-gitflow-release-workflow/compare/1.2.0...HEAD +[Unreleased]: https://github.com/thomaseizinger/github-action-gitflow-release-workflow/compare/1.3.0...HEAD + +[1.3.0]: https://github.com/thomaseizinger/github-action-gitflow-release-workflow/compare/1.2.0...1.3.0 [1.2.0]: https://github.com/thomaseizinger/github-action-gitflow-release-workflow/compare/1.1.0...1.2.0 diff --git a/package.json b/package.json index daa533e..798c4a6 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "github-action-gitflow-release-workflow", - "version": "1.2.0", + "version": "1.3.0", "main": "index.js", "author": "Thomas Eizinger ", "license": "MIT",