Skip to content

Commit

Permalink
Change manipulations on GitHub variables.
Browse files Browse the repository at this point in the history
  • Loading branch information
GrahamDumpleton committed Aug 9, 2023
1 parent cdd2d57 commit 63ea2ef
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/publish-workshops.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ jobs:
shell: bash
run: |
echo WORKSHOPS="lab-builtin-vcluster,lab-shared-vcluster,lab-remote-cluster" >>${GITHUB_ENV}
echo REPOSITORY_OWNER=$(echo "${{github.repository_owner}}"" | tr '[:upper:]' '[:lower:]') >>${GITHUB_ENV}
echo REPOSITORY_TAG=$(echo "${{github.ref}}"" | sed -e 's%refs/tags/%%') >>${GITHUB_ENV}
- name: Publish workshops and create workshop definition
shell: bash
Expand All @@ -42,8 +44,8 @@ jobs:
mkdir -p ${{runner.temp}}/workshops/${WORKSHOP}
educates publish-workshop workshops/${WORKSHOP} \
--export-workshop ${{runner.temp}}/workshops/${WORKSHOP}/workshop.yaml \
--repository=ghcr.io/${{github.repository_owner|lower}} \
--workshop-version=${{github.ref.replace('refs/tags/','')}} \
--repository=ghcr.io/${REPOSITORY_OWNER} \
--workshop-version=${REPOSITORY_TAG} \
--registry-username=${{github.actor}} \
--registry-password=${{secrets.GITHUB_TOKEN}}
done
Expand All @@ -61,8 +63,8 @@ jobs:
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
with:
tag_name: ${{github.ref.replace('refs/tags/','')}}
name: ${{github.repository_name}}:${{github.ref.replace('refs/tags/','')}}
tag_name: ${REPOSITORY_TAG}
name: ${{github.repository_name}}:${REPOSITORY_TAG}
draft: false
prerelease: false
files: |
Expand Down

0 comments on commit 63ea2ef

Please sign in to comment.