@@ -133,7 +133,7 @@ jobs:
133133 - 5000:5000
134134
135135 permissions :
136- actions : read
136+ actions : write
137137 contents : write
138138 packages : write
139139 attestations : write
@@ -611,20 +611,22 @@ jobs:
611611 # ╚═════════════════════════════════════════════════════╝
612612 # CHECKOUT HEAD TO BE UP TO DATE WITH EVERYTHING
613613 - name : README.md / checkout
614+ if : github.event.inputs.readme == 'true'
614615 continue-on-error : true
615616 run : |
616617 git checkout HEAD
617618
618619 # CREATE MAKRDOWN OF README.md
619620 - name : README.md / create
621+ if : github.event.inputs.readme == 'true'
620622 id : github-readme
621623 continue-on-error : true
622624 uses : 11notes/action-docker-readme@v1
623625
624626 # UPLOAD README.md to DOCKER HUB
625627 - name : README.md / push to Docker Hub
628+ if : github.event.inputs.readme == 'true' && steps.github-readme.outcome == 'success' && hashFiles('README_NONGITHUB.md') != ''
626629 continue-on-error : true
627- if : steps.github-readme.outcome == 'success' && hashFiles('README_NONGITHUB.md') != ''
628630 uses : christian-korneck/update-container-description-action@d36005551adeaba9698d8d67a296bd16fa91f8e8 # v1
629631 env :
630632 DOCKER_USER : 11notes
@@ -637,8 +639,8 @@ jobs:
637639
638640 # COMMIT NEW README.md, LICENSE and compose
639641 - name : README.md / github commit & push
642+ if : github.event.inputs.readme == 'true' && steps.github-readme.outcome == 'success' && hashFiles('README.md') != ''
640643 continue-on-error : true
641- if : steps.github-readme.outcome == 'success' && hashFiles('README.md') != ''
642644 run : |
643645 git config user.name "github-actions[bot]"
644646 git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
0 commit comments