name: PHP Composer on: push: branches: [ master ] jobs: build: runs-on: ubuntu-latest steps: - name: Setup PHP with PECL extension uses: shivammathur/setup-php@v2 with: php-version: '7.4' - name: Set git credentials run: git config --global user.name "Vassyli" && git config --global user.email "basilius.sauter+automated@gmail.com" && git config --global user.password "${{ secrets.GH_TOKEN }}" - name: "Checkouts satis and packages" run: git clone https://github.com/composer/satis && git clone https://github.com/lotgd/packages - name: "Install satis" run: cd satis && composer install && cd .. - name: "Build satis" run: satis/bin/satis build packages/satis.json packages/build - name: "Commit changes and push to origin" run: composer commit -a -m "Updated packages" && composer push origin master