Skip to content

Commit

Permalink
Merge pull request #55 from Afterlife-Guide/hotfix/issue-53-lowercase
Browse files Browse the repository at this point in the history
Fix uppercase chars in package name
  • Loading branch information
baynezy authored Mar 25, 2024
2 parents 002472f + d707a86 commit b5d4935
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/branch-hotfix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/draft-new-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 7 additions & 1 deletion .github/workflows/step-push-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
tags: ghcr.io/${{ env.repo_owner }}/${{ env.container_name }}:${{ inputs.version }}
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

Expand Down
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
2 changes: 1 addition & 1 deletion semver.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"major":"1","minor":"0","patch":"0","build":"5"}
{"major":"1","minor":"0","patch":"1","build":"6"}

0 comments on commit b5d4935

Please sign in to comment.