File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 1111 workflow_uuid :
1212 description : ' Optional UUID to identify this workflow run'
1313 required : false
14+ pr_to_official_library :
15+ default : false
1416
1517env :
1618 TARGET_OFFICIAL_IMAGES_REPO : docker-library/official-images
7678 uses : actions/checkout@v4
7779 with :
7880 path : official-images
79- repository : ${{ env.TARGET_OFFICIAL_IMAGES_REPO }}
81+ repository : ${{ github.event.inputs.pr_to_official_library && env.TARGET_OFFICIAL_IMAGES_REPO || env.FORKED_OFFICIAL_IMAGES_REPO }}
8082
8183 - name : Generate stackbrew library content
8284 env :
@@ -102,7 +104,7 @@ jobs:
102104 with :
103105 token : ${{ secrets.GH_TOKEN_FOR_PR }}
104106 draft : true
105- push-to-fork : ${{ env.FORKED_OFFICIAL_IMAGES_REPO }}
107+ push-to-fork : ${{ github.event.inputs.pr_to_official_library && env.FORKED_OFFICIAL_IMAGES_REPO || '' }}
106108 path : official-images
107109 branch : redis-${{ steps.parse-release.outputs.release_version }}
108110 commit-message : " Redis: Update to ${{ steps.parse-release.outputs.release_version }}"
@@ -158,4 +160,4 @@ jobs:
158160 . ${GITHUB_WORKSPACE}/.github/actions/common/func.sh
159161
160162 slack_format_failure_message "Docker PR failed for Redis: ${{ steps.parse-release.outputs.release_version || 'unknown'}}" "$workflow_url" "$footer" \
161- | curl -s --fail-with-body -d@- "${{ secrets.SLACK_WEB_HOOK_URL }}"
163+ | curl -s --fail-with-body -d@- "${{ secrets.SLACK_WEB_HOOK_URL }}"
You can’t perform that action at this time.
0 commit comments