Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
TomasLudvik committed Oct 16, 2023
1 parent 83dce92 commit 8ce8247
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/run-checks-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,16 +47,15 @@ jobs:
run: echo 1 | ./scripts/configure.sh
- name: Remove other domains than first one from configs
run: |
pwd
ls -la
ls -la ./config
# delete all domain URLs except URLs for domain with ID 1 in config/domains.yaml
sed -i '/id: 2/{:a;Q}' config/domains_urls.yaml.dist
sed -i '/id: 2/{:a;Q}' config/domains_urls.yaml
sed -i '/id: 2/{:a;Q}' config/domains.yaml
# sed is removing all content from match to end of file, unfortunately it adds new line (\n) after the replacement
# more info: https://stackoverflow.com/questions/50559170/delete-last-line-break-using-sed
# when there stays more than one last line the build will fail because of our coding standards
truncate -s -1 config/domains_urls.yaml.dist
truncate -s -1 config/domains_urls.yaml
truncate -s -1 config/domains.yaml
- name: Install composer dependencies
run: docker-compose exec -T php-fpm composer install
Expand Down

0 comments on commit 8ce8247

Please sign in to comment.