Skip to content

Commit a98b66f

Browse files
Merge branch 'main' into ingesting-update-rawpixel-image-url
2 parents 9599497 + 7fde4d1 commit a98b66f

File tree

349 files changed

+50238
-186944
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

349 files changed

+50238
-186944
lines changed

.github/workflows/ci_cd.yml

Lines changed: 30 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,14 @@ on:
1010
image_tag:
1111
description: "The tag to assign to the images built in the workflow."
1212
type: string
13-
required: true
13+
required: false
14+
default: ""
15+
# This is useful when dispatching on a branch other than `main`.
16+
perform_deploy:
17+
description: "Publish images and deploy staging?"
18+
type: boolean
19+
required: false
20+
default: false
1421

1522
concurrency:
1623
group: ${{ github.workflow }}-${{ github.ref }}
@@ -56,10 +63,10 @@ jobs:
5663
- name: Get image tag
5764
id: get-image-tag
5865
run: |
59-
if [[ "${{ github.event_name }}" == "workflow_dispatch" ]]; then
60-
echo "image_tag=${{ inputs.image_tag }}" >> "$GITHUB_OUTPUT"
66+
if [[ "${{ github.event_name }}" == "workflow_dispatch" && "${{ inputs.image_tag }}" != "" ]]; then
67+
echo "image_tag=${{ inputs.image_tag }}" | tee "$GITHUB_OUTPUT"
6168
else
62-
echo "image_tag=${{ github.sha }}" >> "$GITHUB_OUTPUT"
69+
echo "image_tag=${{ github.sha }}" | tee "$GITHUB_OUTPUT"
6370
fi
6471
6572
determine-images:
@@ -192,8 +199,7 @@ jobs:
192199
- name: Prepare build args
193200
id: prepare-build-args
194201
run: |
195-
just versions
196-
just versions >> "$GITHUB_OUTPUT"
202+
just versions | tee "$GITHUB_OUTPUT"
197203
198204
# ℹ️Step only applies for frontend image.
199205
# This step
@@ -737,8 +743,7 @@ jobs:
737743
$EOF
738744
HEREDOC
739745
)
740-
echo "$MESSAGE"
741-
echo "$MESSAGE" >> "$GITHUB_OUTPUT"
746+
echo "$MESSAGE" | tee "$GITHUB_OUTPUT"
742747
743748
- uses: peter-evans/create-or-update-comment@v3
744749
id: create-comment
@@ -901,8 +906,10 @@ jobs:
901906
# prevent running on fork PRs
902907
if: |
903908
!failure() && !cancelled() &&
904-
github.event_name == 'push' &&
905-
github.repository == 'WordPress/openverse' &&
909+
(
910+
(github.event_name == 'push' && github.repository == 'WordPress/openverse') ||
911+
(github.event_name == 'workflow_dispatch' && inputs.perform_deploy)
912+
) &&
906913
needs.determine-images.outputs.do_publish == 'true' &&
907914
(needs.test-ing.result == 'success' || needs.test-ing.result == 'skipped') &&
908915
(needs.test-api.result == 'success' || needs.test-api.result == 'skipped') &&
@@ -960,7 +967,10 @@ jobs:
960967
runs-on: ubuntu-latest
961968
if: |
962969
!failure() && !cancelled() &&
963-
github.event_name == 'push' &&
970+
(
971+
(github.event_name == 'push' && github.repository == 'WordPress/openverse') ||
972+
(github.event_name == 'workflow_dispatch' && inputs.perform_deploy)
973+
) &&
964974
needs.get-changes.outputs.frontend == 'true' &&
965975
needs.playwright.result == 'success' &&
966976
needs.publish-images.result == 'success'
@@ -1002,7 +1012,10 @@ jobs:
10021012
runs-on: ubuntu-latest
10031013
if: |
10041014
!failure() && !cancelled() &&
1005-
github.event_name == 'push' &&
1015+
(
1016+
(github.event_name == 'push' && github.repository == 'WordPress/openverse') ||
1017+
(github.event_name == 'workflow_dispatch' && inputs.perform_deploy)
1018+
) &&
10061019
needs.get-changes.outputs.api == 'true' &&
10071020
needs.publish-images.result == 'success'
10081021
needs:
@@ -1046,10 +1059,12 @@ jobs:
10461059
runs-on: ubuntu-latest
10471060
if: |
10481061
!cancelled() &&
1049-
github.event_name == 'push' &&
1050-
github.repository == 'WordPress/openverse' &&
10511062
(
1052-
(needs.get-changes.outputs.documentation == 'true' && needs.emit-docs.result != 'success') ||
1063+
(github.event_name == 'push' && github.repository == 'WordPress/openverse') ||
1064+
(github.event_name == 'workflow_dispatch' && inputs.perform_deploy)
1065+
) &&
1066+
(
1067+
((github.event_name == 'push' && needs.get-changes.outputs.documentation == 'true') && needs.emit-docs.result != 'success') ||
10531068
(needs.determine-images.outputs.do_publish == 'true' && needs.publish-images.result != 'success') ||
10541069
(needs.get-changes.outputs.frontend == 'true' && needs.deploy-frontend.result != 'success') ||
10551070
(needs.get-changes.outputs.api == 'true' && needs.deploy-api.result != 'success')

.github/workflows/pr_limit_reminders.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ jobs:
1111
outputs:
1212
pr_count: ${{ steps.count-prs.outputs.pr_count }}
1313
slack_id: ${{ steps.count-prs.outputs.slack_id }}
14+
should_alert: ${{ steps.count-prs.outputs.should_alert }}
1415
steps:
1516
- uses: actions/checkout@v4
1617
- uses: actions/github-script@v6
@@ -26,7 +27,7 @@ jobs:
2627
send_message:
2728
needs: analyze-user-prs
2829
name: Send Slack message
29-
if: ${{ needs.analyze-user-prs.outputs.pr_count >= 3 }}
30+
if: needs.analyze-user-prs.outputs.pr_count >= 3
3031
runs-on: ubuntu-latest
3132
env:
3233
pr_count: ${{ needs.analyze-user-prs.outputs.pr_count }}

.github/workflows/pr_ping.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ jobs:
5151
with:
5252
payload: |
5353
{
54-
"text": "PR by${{ env.pr_author }}in ${{ env.pr_repo }} marked ready for review: #${{ env.pr_number }} - ${{ env.pr_title }}",
54+
"text": "PR by ${{ env.pr_author }} in ${{ env.pr_repo }} marked ready for review: #${{ env.pr_number }} - ${{ env.pr_title }}",
5555
"blocks": [
5656
{
5757
"type": "section",

.github/workflows/push_docker_image.yml

Lines changed: 0 additions & 63 deletions
This file was deleted.

api/Pipfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ elasticsearch = "==8.11.1"
3737
elasticsearch-dsl = "~=8.9"
3838
future = "~=0.18"
3939
limit = "~=0.2"
40-
Pillow = "~=10.1.0"
40+
Pillow = "~=10.2.0"
4141
psycopg = "~=3.1"
4242
python-decouple = "~=3.8"
4343
python-xmp-toolkit = "~=2.0"

0 commit comments

Comments
 (0)