diff --git a/.forgejo/workflows/push.yml b/.forgejo/workflows/push.yml index f9d3504..53e7ada 100644 --- a/.forgejo/workflows/push.yml +++ b/.forgejo/workflows/push.yml @@ -6,7 +6,16 @@ jobs: image: git.php.fail/lubiana/container/php:8.2.11-node steps: - uses: actions/checkout@v3 - - run: env | sort + - name: Get Composer Cache Directory + id: composer-cache + run: | + echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT + - uses: actions/cache@v3 + with: + path: ${{ steps.composer-cache.outputs.dir }} + key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }} + restore-keys: | + ${{ runner.os }}-composer- - run: composer install - run: composer fix - name: GIT commit and push all changed files