Skip to content

Commit

Permalink
Updated actions to v4, scan langcode of exported configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
tuutti committed Mar 20, 2024
1 parent 7fdfa83 commit 5454488
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/artifact.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,7 @@ jobs:
- 3306:3306

steps:
- uses: actions/checkout@v3
with:
fetch-depth: 1
- uses: actions/checkout@v4

- name: Build project
run: composer install --no-interaction
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,12 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Make sure configuration was exported in correct language
- name: Make sure configuration was exported in correct language (en or und)
run: |
OUTPUT=$(grep -oP '^langcode: \b(?!(?:en|und)\b)\w+' conf -R || true)
if [ ! -z "$OUTPUT" ]; then
echo "Found configuration exported in wrong language:" >> $GITHUB_STEP_SUMMARY
echo "Found configuration that does not match the pattern 'langcode: (en|und)':" >> $GITHUB_STEP_SUMMARY
echo "$OUTPUT" >> $GITHUB_STEP_SUMMARY
exit 1
fi
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/update-config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ jobs:

steps:
- uses: actions/checkout@v4

- name: Download latest dump
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
4 changes: 3 additions & 1 deletion docker/openshift/entrypoints/10-preflight.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ source /init.sh

if [ -f "../docker/openshift/preflight/preflight.php" ]; then
echo "Running preflight checks ..."
php ../docker/openshift/preflight/preflight.php
if ! php ../docker/openshift/preflight/preflight.php; then
exit 1
fi
fi

0 comments on commit 5454488

Please sign in to comment.