Skip to content

Commit 7b57b32

Browse files
committed
Publish docs to s3 uses current version of workflows/scripts
In case we built docs for past version of airflow we checkout both - current (main) version of code to use latest environment and tag version of code to build the documentation. The workflow mixed sub-workflows and run them from the "tag" version of workflow rather than from current. This PR fixes it.
1 parent 4377a8d commit 7b57b32

1 file changed

Lines changed: 8 additions & 9 deletions

File tree

.github/workflows/publish-docs-to-s3.yml

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,13 @@ jobs:
182182
with:
183183
persist-credentials: false
184184
path: current-version
185+
- name: "Free up disk space"
186+
shell: bash
187+
run: ./current-version/scripts/tools/free_up_disk_space.sh
188+
- name: "Make /mnt writeable"
189+
run: ./current-version/scripts/ci/make_mnt_writeable.sh
190+
- name: "Move docker to /mnt"
191+
run: ./current-version/scripts/ci/move_docker_to_mnt.sh
185192
# We are checking repo for both - breeze and docs from the ref provided as input
186193
# This will take longer as we need to rebuild CI image and it will not use cache
187194
# but it will build the CI image from the version of Airflow that is used to check out things
@@ -192,13 +199,6 @@ jobs:
192199
ref: ${{ inputs.ref }}
193200
fetch-depth: 0
194201
fetch-tags: true
195-
- name: "Free up disk space"
196-
shell: bash
197-
run: ./scripts/tools/free_up_disk_space.sh
198-
- name: "Make /mnt writeable"
199-
run: ./scripts/ci/make_mnt_writeable.sh
200-
- name: "Move docker to /mnt"
201-
run: ./scripts/ci/move_docker_to_mnt.sh
202202
- name: "Apply patch commits if provided"
203203
run: |
204204
if [[ "${APPLY_COMMITS}" != "" ]]; then
@@ -216,7 +216,7 @@ jobs:
216216
echo "No commits provided to apply, skipping."
217217
fi
218218
- name: "Install Breeze from the ${{ inputs.ref }} reference"
219-
uses: ./.github/actions/breeze
219+
uses: ./current-version/.github/actions/breeze
220220
with:
221221
python-version: "${{ needs.build-info.outputs.default-python-version }}"
222222
- name: "Building image from the ${{ inputs.ref }} reference"
@@ -248,7 +248,6 @@ jobs:
248248
persist-credentials: false
249249
fetch-depth: 0
250250
fetch-tags: true
251-
path: current-version
252251
if: inputs.build-sboms
253252
- name: "Reinstall breeze from the current version"
254253
run: |

0 commit comments

Comments
 (0)