Skip to content

Commit

Permalink
Merge pull request #208 from leemyongpakva/github_action_v4
Browse files Browse the repository at this point in the history
update github actions from v3 to v4
  • Loading branch information
kpodemski authored May 15, 2024
2 parents 3b8119f + 11a89d7 commit 59be87a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3.1.0
uses: actions/checkout@v4
- name: Install composer dependencies
run: composer install --no-dev -o
- name: Clean-up project
Expand All @@ -17,7 +17,7 @@ jobs:
- name: Generate index.php
run: ~/.composer/vendor/bin/autoindex
- name: Create & upload artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: ${{ github.event.repository.name }}
path: /home/runner/work/${{ github.event.repository.name }}
Expand All @@ -27,7 +27,7 @@ jobs:
if: github.event_name == 'push' && (github.event.ref == 'refs/heads/main' || github.event.ref == 'refs/heads/master')
steps:
- name: Download artifact
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: ${{ github.event.repository.name }}
path: ${{ github.event.repository.name }}
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3.1.0
uses: actions/checkout@v4

- name: PHP syntax checker 7.2
uses: prestashop/github-action-php-lint/7.2@master
Expand Down Expand Up @@ -38,10 +38,10 @@ jobs:
php-version: '7.4'

- name: Checkout
uses: actions/checkout@v3.1.0
uses: actions/checkout@v4

- name: Cache dependencies
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: vendor
key: php-${{ hashFiles('composer.lock') }}
Expand All @@ -66,18 +66,18 @@ jobs:
php-version: '7.4'

- name: Checkout
uses: actions/checkout@v3.1.0
uses: actions/checkout@v4

# Add vendor folder in cache to make next builds faster
- name: Cache vendor folder
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: vendor
key: php-${{ hashFiles('composer.lock') }}

# Add composer local folder in cache to make next builds faster
- name: Cache composer folder
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ~/.composer/cache
key: php-composer-cache
Expand Down

0 comments on commit 59be87a

Please sign in to comment.