Skip to content

Commit

Permalink
Merge pull request #28 from LizardByte/repository-name-lowercase
Browse files Browse the repository at this point in the history
Convert repository name to lowercase
  • Loading branch information
heyhusen committed Aug 5, 2022
2 parents 099605a + d3aea41 commit 94f928c
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,13 @@ jobs:
- name: Update action.yml to use edge tagged container image
if: github.ref == 'refs/heads/main'
run: |
sed -i 's/.*image\:.*/ image\: \"docker\:\/\/ghcr.io\/${{ github.repository_owner }}\/${{ github.event.repository.name }}\:edge\"/' action.yml
REPOSITORY_OWNER=${{ github.repository_owner }}
REPOSITORY_OWNER=$(echo $REPOSITORY_OWNER | tr '[:upper:]' '[:lower:]')
REPOSITORY_NAME=${{ github.event.repository.name }}
REPOSITORY_NAME=$(echo $REPOSITORY_NAME | tr '[:upper:]' '[:lower:]')
sed -i "s/.*image\:.*/ image\: \"docker\:\/\/ghcr.io\/${REPOSITORY_OWNER}\/${REPOSITORY_NAME}\:edge\"/" action.yml
cat action.yml
- name: Running test
Expand Down

0 comments on commit 94f928c

Please sign in to comment.