File tree Expand file tree Collapse file tree 1 file changed +25
-2
lines changed Expand file tree Collapse file tree 1 file changed +25
-2
lines changed Original file line number Diff line number Diff line change @@ -33,11 +33,34 @@ jobs:
33
33
platforms : linux/amd64,linux/arm64
34
34
tags : ${{ github.repository }}:${{ github.event.release.tag_name }},${{ github.repository }}:latest
35
35
36
+ - name : Set repository info
37
+ run : |
38
+ if [[ -z "${{ env.repository_name }}" ]]; then
39
+ REPO_NAME="${GITHUB_REPOSITORY}"
40
+ else
41
+ REPO_NAME="${{ env.repository_name }}"
42
+ fi
43
+ if [ -z "$REPO_NAME" ]; then
44
+ echo "REPO_NAME=thevickypedia/github-runner-linux" >> $GITHUB_ENV
45
+ else
46
+ echo "REPO_NAME=$REPO_NAME" >> $GITHUB_ENV
47
+ fi
48
+
49
+ if [[ -z "${{ env.repository_desc }}" ]]; then
50
+ echo REPO_DESCRIPTION="Spin up an on-demand self-hosted GitHub action runner with multi-arch supported Ubuntu image." >> $GITHUB_ENV
51
+ else
52
+ echo REPO_DESCRIPTION="${{ env.repository_desc }}" >> $GITHUB_ENV
53
+ fi
54
+ shell : bash
55
+ env :
56
+ repository_name : " ${{ github.repository.name }}"
57
+ repository_desc : " ${{ github.repository.description }}"
58
+
36
59
- name : Update description
37
60
uses : thevickypedia/describe-docker@v1
38
61
with :
39
62
username : ${{ secrets.DOCKER_USERNAME }}
40
63
password : ${{ secrets.DOCKER_PASSWORD }}
41
- summary : " ${{ github.repository.description }}"
42
- repository : ${{ github.repository.name }}
64
+ summary : " ${{ env.REPO_DESCRIPTION }}"
65
+ repository : " ${{ env.REPO_NAME }}"
43
66
filename : " README.md"
You can’t perform that action at this time.
0 commit comments