From de797459b313e6cf9ba3cc243505b6428d4a6573 Mon Sep 17 00:00:00 2001 From: Simon Baynes Date: Mon, 25 Mar 2024 15:16:55 +0000 Subject: [PATCH 1/2] Fix uppercase chars in package name Fixes #53 --- .github/workflows/branch-hotfix.yml | 2 +- .github/workflows/draft-new-release.yml | 2 +- .github/workflows/step-push-package.yml | 8 +++++++- action.yml | 2 +- 4 files changed, 10 insertions(+), 4 deletions(-) diff --git a/.github/workflows/branch-hotfix.yml b/.github/workflows/branch-hotfix.yml index e72568f..302eddb 100644 --- a/.github/workflows/branch-hotfix.yml +++ b/.github/workflows/branch-hotfix.yml @@ -47,7 +47,7 @@ jobs: - name: Update docker image tag version in action.yml run: | - sed -i "s/image: 'docker:\/\/ghcr.io\/AfterLife-Guide\/SemVer.Action:.*/image: 'docker:\/\/ghcr.io\/AfterLife-Guide\/SemVer.Action:${{ github.event.inputs.major_version }}.${{ github.event.inputs.minor_version }}.${{ steps.increment_version.outputs.patch_version }}.${{ github.run_number }}'/" action.yml + sed -i "s/image: 'docker:\/\/ghcr.io\/afterlife-guide\/semver.action:.*/image: 'docker:\/\/ghcr.io\/afterlife-guide\/semver.action:${{ needs.get-version.outputs.major }}.${{ needs.get-version.outputs.minor }}.${{ steps.increment_version.outputs.patch_version }}.${{ github.run_number }}'/" action.yml - name: Commit Changes run: | diff --git a/.github/workflows/draft-new-release.yml b/.github/workflows/draft-new-release.yml index b8bb7c0..6b9b44b 100644 --- a/.github/workflows/draft-new-release.yml +++ b/.github/workflows/draft-new-release.yml @@ -39,7 +39,7 @@ jobs: - name: Update docker image tag version in action.yml run: | - sed -i "s/image: 'docker:\/\/ghcr.io\/AfterLife-Guide\/SemVer.Action:.*/image: 'docker:\/\/ghcr.io\/AfterLife-Guide\/SemVer.Action:${{ github.event.inputs.major_version }}.${{ github.event.inputs.minor_version }}.${{ github.event.inputs.patch_version }}.${{ github.run_number }}'/" action.yml + sed -i "s/image: 'docker:\/\/ghcr.io\/afterlife-guide\/semver.action:.*/image: 'docker:\/\/ghcr.io\/afterlife-guide\/semver.action:${{ github.event.inputs.major_version }}.${{ github.event.inputs.minor_version }}.${{ github.event.inputs.patch_version }}.${{ github.run_number }}'/" action.yml - name: Commit changelog, manifest and action definition files id: make-commit diff --git a/.github/workflows/step-push-package.yml b/.github/workflows/step-push-package.yml index a64d1db..cb446c4 100644 --- a/.github/workflows/step-push-package.yml +++ b/.github/workflows/step-push-package.yml @@ -24,10 +24,16 @@ jobs: username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} + - name: Lowercase Tag + id: lowercase_tag + run: | + echo "repo_owner=$(echo ${{ github.repository_owner }} | tr '[:upper:]' '[:lower:]')" >> $GITHUB_ENV + echo "container_name=$(echo 'SemVer.Action' | tr '[:upper:]' '[:lower:]')" >> $GITHUB_ENV + - name: Build and push Docker image uses: docker/build-push-action@v2 with: context: . file: ./src/SemVer.Json/Dockerfile push: true - tags: ghcr.io/${{ github.repository_owner }}/SemVer.Action:${{ inputs.version }} \ No newline at end of file + tags: ghcr.io/${{ env.repo_owner }}/${{ env.container_name }}:${{ inputs.version }} \ No newline at end of file diff --git a/action.yml b/action.yml index ef9f790..233f599 100644 --- a/action.yml +++ b/action.yml @@ -34,7 +34,7 @@ outputs: description: 'The full version number' runs: using: 'docker' - image: 'docker://ghcr.io/AfterLife-Guide/SemVer.Action:1.0.0.5' + image: 'docker://ghcr.io/afterlife-guide/semver.action:1.0.0.5' args: - ${{ (inputs.major-version == '0' && inputs.minor-version == '0' && inputs.patch-version == '0' && inputs.build-version == '0') && 'read' || 'write' }} - '-p' From d707a863ed0815af3cb86094b6076922373829fc Mon Sep 17 00:00:00 2001 From: GitHub Action Bot Date: Mon, 25 Mar 2024 15:28:40 +0000 Subject: [PATCH 2/2] Bump Version to 1.0.1.6 --- CHANGELOG.md | 6 +++++- action.yml | 2 +- semver.json | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9c71540..d6aeac8 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.0.1.6] - 2024-03-25 + ## [1.0.0.5] - 2024-03-25 ## [0.2.0.3] - 2024-03-22 @@ -15,7 +17,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [0.1.0.1] - 2024-03-22 -[Unreleased]: https://github.com/Afterlife-Guide/SemVer.Action/compare/1.0.0.5...HEAD +[Unreleased]: https://github.com/Afterlife-Guide/SemVer.Action/compare/1.0.1.6...HEAD + +[1.0.1.6]: https://github.com/Afterlife-Guide/SemVer.Action/compare/1.0.0.5...1.0.1.6 [1.0.0.5]: https://github.com/Afterlife-Guide/SemVer.Action/compare/0.2.0.3...1.0.0.5 diff --git a/action.yml b/action.yml index 233f599..1818816 100644 --- a/action.yml +++ b/action.yml @@ -34,7 +34,7 @@ outputs: description: 'The full version number' runs: using: 'docker' - image: 'docker://ghcr.io/afterlife-guide/semver.action:1.0.0.5' + image: 'docker://ghcr.io/afterlife-guide/semver.action:1.0.1.6' args: - ${{ (inputs.major-version == '0' && inputs.minor-version == '0' && inputs.patch-version == '0' && inputs.build-version == '0') && 'read' || 'write' }} - '-p' diff --git a/semver.json b/semver.json index a71c8fc..320c68e 100644 --- a/semver.json +++ b/semver.json @@ -1 +1 @@ -{"major":"1","minor":"0","patch":"0","build":"5"} \ No newline at end of file +{"major":"1","minor":"0","patch":"1","build":"6"} \ No newline at end of file