name: Forgejo Set Image Name description: Define IMAGE_NAME to Git Hub env, based on repository name inputs: username: description: Image User Name required: true runs: using: composite steps: - name: Set Image Name shell: sh run: | export REPO_FULL=${{ github.repository }} export REPO_NAME=${REPO_FULL#*/} if [ "${{ github.ref_name }}" != "master" ] && [ "${{ github.ref_name }}" != "main" ]; then export IMAGE_NAME=$REPO_NAME-dev else export IMAGE_NAME=$REPO_NAME fi echo "IMAGE_NAME=$IMAGE_NAME" >> $GITHUB_ENV echo "Image Name: $IMAGE_NAME, for Branch: ${{ github.ref_name }}"