-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #420 from City-of-Helsinki/dev
Dev to main
- Loading branch information
Showing
38 changed files
with
474 additions
and
487 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,8 @@ on: | |
repository_dispatch: | ||
types: [config_change] | ||
name: Update config | ||
env: | ||
GH_TOKEN: ${{ github.token }} | ||
jobs: | ||
update-config: | ||
runs-on: ubuntu-latest | ||
|
@@ -21,10 +23,7 @@ jobs: | |
- 3306:3306 | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 1 | ||
|
||
- uses: actions/checkout@v4 | ||
- name: Download latest dump | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
@@ -41,16 +40,43 @@ jobs: | |
# Update platform | ||
drush helfi:tools:update-platform | ||
- name: Check module versions | ||
id: module-status | ||
run: | | ||
MODE="delete" | ||
drush helfi:tools:check-composer-versions $GITHUB_WORKSPACE/composer.lock --format=markdown_table >> $GITHUB_STEP_SUMMARY && EXIT_CODE=$? || EXIT_CODE=$? | ||
if [ "$EXIT_CODE" -eq 3 ]; then | ||
MODE="upsert" | ||
echo " " >> $GITHUB_STEP_SUMMARY | ||
echo ":warning: Failed to install the latest version of the packages listed above" >> $GITHUB_STEP_SUMMARY | ||
echo " " >> $GITHUB_STEP_SUMMARY | ||
echo "Please run \`composer why-not drupal/package_name package_version\` to see why." >> $GITHUB_STEP_SUMMARY | ||
fi | ||
echo "MODE=$MODE" >> $GITHUB_OUTPUT | ||
cat $GITHUB_STEP_SUMMARY > /tmp/pr-message.txt | ||
- name: Create Pull Request | ||
uses: peter-evans/create-pull-request@v4 | ||
uses: peter-evans/create-pull-request@v6 | ||
with: | ||
committer: GitHub <[email protected]> | ||
author: actions-bot <[email protected]> | ||
commit-message: Update configuration | ||
title: Automatic update | ||
labels: auto-update | ||
body: | | ||
- Updated active configuration. | ||
- Updated platform | ||
branch: update-configuration | ||
|
||
- name: Attempt to find PR | ||
env: | ||
BRANCH_NAME: ${{ github.head_ref || github.ref_name }} | ||
id: find-pr | ||
run: echo "number=$(gh pr list --base ${BRANCH_NAME} --head update-configuration --json number --jq '.[].number')" >> $GITHUB_OUTPUT | ||
|
||
- name: Comment PR | ||
uses: thollander/actions-comment-pull-request@v2 | ||
if: ${{ steps.find-pr.outputs.number != '' }} | ||
with: | ||
comment_tag: status | ||
mode: ${{ steps.module-status.outputs.MODE }} | ||
filePath: /tmp/pr-message.txt | ||
pr_number: ${{ steps.find-pr.outputs.number }} |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
72 changes: 72 additions & 0 deletions
72
conf/cmi/core.entity_form_display.taxonomy_term.linked_events_keywords.default.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
uuid: d3bdb49e-461c-4a0f-a88c-c34eb54f7101 | ||
langcode: en | ||
status: true | ||
dependencies: | ||
config: | ||
- field.field.taxonomy_term.linked_events_keywords.field_keyword_id | ||
- taxonomy.vocabulary.linked_events_keywords | ||
module: | ||
- hdbt_admin_tools | ||
- path | ||
- readonly_field_widget | ||
_core: | ||
default_config_hash: wrJ7qU6IE5H0AiZu6m8w7XCBXT-dqOntJPqFqR0iyU8 | ||
id: taxonomy_term.linked_events_keywords.default | ||
targetEntityType: taxonomy_term | ||
bundle: linked_events_keywords | ||
mode: default | ||
content: | ||
description: | ||
type: formatted_text_character_counter | ||
weight: 0 | ||
region: content | ||
settings: | ||
counter_step: 160 | ||
counter_total: 200 | ||
rows: 5 | ||
placeholder: '' | ||
third_party_settings: { } | ||
field_keyword_id: | ||
type: readonly_field_widget | ||
weight: 101 | ||
region: content | ||
settings: | ||
label: above | ||
formatter_type: null | ||
formatter_settings: { } | ||
show_description: false | ||
third_party_settings: { } | ||
langcode: | ||
type: language_select | ||
weight: 2 | ||
region: content | ||
settings: | ||
include_locked: true | ||
third_party_settings: { } | ||
name: | ||
type: string_textfield | ||
weight: -5 | ||
region: content | ||
settings: | ||
size: 60 | ||
placeholder: '' | ||
third_party_settings: { } | ||
path: | ||
type: path | ||
weight: 30 | ||
region: content | ||
settings: { } | ||
third_party_settings: { } | ||
status: | ||
type: boolean_checkbox | ||
weight: 100 | ||
region: content | ||
settings: | ||
display_label: true | ||
third_party_settings: { } | ||
translation: | ||
weight: 10 | ||
region: content | ||
settings: { } | ||
third_party_settings: { } | ||
hidden: { } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
conf/cmi/core.entity_view_display.taxonomy_term.linked_events_keywords.default.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
uuid: 19cd3ce0-e5a8-4db8-ab50-ae7bde5fa981 | ||
langcode: en | ||
status: true | ||
dependencies: | ||
config: | ||
- field.field.taxonomy_term.linked_events_keywords.field_keyword_id | ||
- taxonomy.vocabulary.linked_events_keywords | ||
module: | ||
- text | ||
_core: | ||
default_config_hash: fBcG1sEoN3MYNH4WUM9M_e2jo304Kha_sUVu26s05ig | ||
id: taxonomy_term.linked_events_keywords.default | ||
targetEntityType: taxonomy_term | ||
bundle: linked_events_keywords | ||
mode: default | ||
content: | ||
description: | ||
type: text_default | ||
label: hidden | ||
settings: { } | ||
third_party_settings: { } | ||
weight: 0 | ||
region: content | ||
hidden: | ||
field_keyword_id: true | ||
langcode: true | ||
search_api_excerpt: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.