Skip to content

Commit b80b18a

Browse files
committed
Fixing errors in github actions
1 parent 6faee95 commit b80b18a

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed

.github/workflows/ci.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
php-versions: ['8.2']
2121
node-version: [16.19.0]
2222
steps:
23-
- uses: actions/checkout@v2
23+
- uses: actions/checkout@v4
2424

2525
- name: Log in to the Container registry
2626
uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9
@@ -34,27 +34,27 @@ jobs:
3434
uses: ASzc/change-string-case-action@v2
3535
with:
3636
string: ${{ github.repository }}
37-
37+
3838
- name: Display repository name
3939
run: echo ${{ steps.case.outputs.lowercase }}
4040

4141
- name: Find-and-replace strings
4242
id: slash
4343
uses: mad9000/actions-find-and-replace-string@2
4444
with:
45-
source: ${{ github.ref_name }}
46-
find: '/'
47-
replace: '-'
45+
source: ${{ github.ref_name }}
46+
find: '/'
47+
replace: '-'
4848

4949
- name: Display issue name
50-
run: echo ${{ steps.slash.outputs.value }}
50+
run: echo ${{ steps.slash.outputs.value }}
5151

5252
- name: Build Image
5353
run: |
5454
cp .env.example .env
5555
docker compose -f docker-compose.nginx.yml build
5656
docker compose -f docker-compose.nginx.yml run composer composer install --no-dev --no-interaction --no-progress --optimize-autoloader
57-
docker compose -f docker-compose.nginx.yml run yarn bash -c 'cd /app && yarn install && yarn build'
57+
docker compose -f docker-compose.nginx.yml run yarn bash -c 'cd /app && yarn install && yarn build'
5858
docker build . -t udoit:latest -f build/nginx/Dockerfile.build
5959
docker tag udoit:latest ${{ env.REGISTRY }}/${{ steps.case.outputs.lowercase }}:${{ steps.slash.outputs.value }}
6060

.github/workflows/udoit.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
run: echo "::set-output name=dir::$(composer config cache-files-dir)"
3636

3737
- name: Cache composer dependencies
38-
uses: actions/cache@v2
38+
uses: actions/cache@v4
3939
with:
4040
path: ${{ steps.composer-cache.outputs.dir }}
4141
key: php-${{ matrix.php-versions }}-composer-${{ hashFiles('**/composer.lock') }}
@@ -54,7 +54,7 @@ jobs:
5454
id: yarn-cache-dir-path
5555
run: echo "::set-output name=dir::$(yarn config get cacheFolder)"
5656

57-
- uses: actions/cache@v2
57+
- uses: actions/cache@v4
5858
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
5959
with:
6060
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
@@ -76,10 +76,10 @@ jobs:
7676
DATABASE_URL: postgresql://udoit:[email protected]:5432/udoit?serverVersion=11&charset=utf8
7777
run: |
7878
sudo systemctl start postgresql.service
79-
sudo -u postgres psql -c "CREATE DATABASE udoit;"
80-
sudo -u postgres psql -c "CREATE USER udoit WITH PASSWORD 'udoit';"
81-
sudo -u postgres psql -c "ALTER USER udoit WITH SUPERUSER;"
82-
sudo -u postgres psql -c "GRANT ALL PRIVILEGES ON DATABASE "udoit" TO udoit;"
79+
sudo -u postgres psql -c "CREATE DATABASE udoit;"
80+
sudo -u postgres psql -c "CREATE USER udoit WITH PASSWORD 'udoit';"
81+
sudo -u postgres psql -c "ALTER USER udoit WITH SUPERUSER;"
82+
sudo -u postgres psql -c "GRANT ALL PRIVILEGES ON DATABASE "udoit" TO udoit;"
8383
php bin/console doctrine:migrations:migrate
8484
8585
- name: Create and populate MySQL database

0 commit comments

Comments
 (0)