Skip to content

Commit

Permalink
Fix uppercase chars in package name
Browse files Browse the repository at this point in the history
Fixes #53
  • Loading branch information
baynezy committed Mar 25, 2024
1 parent 002472f commit de79745
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 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 }}
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.0.5'
args:
- ${{ (inputs.major-version == '0' && inputs.minor-version == '0' && inputs.patch-version == '0' && inputs.build-version == '0') && 'read' || 'write' }}
- '-p'
Expand Down

0 comments on commit de79745

Please sign in to comment.