Skip to content

Pararius/action-composer-update

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 

Repository files navigation

Example usage

---
name: Update PHP

on:
  pull_request:

env:
  DOCKER_BUILDKIT: 1
  COMPOSER_CACHE_DIR: /tmp/composer-cache

jobs:
  update:
    timeout-minutes: 15
    runs-on: ubuntu-latest
    steps:
    - uses: actions/[email protected]

    - name: Setup cache
      uses: actions/[email protected]
      with:
        path: $COMPOSER_CACHE_DIR
        key: ${{ runner.os }}-${{ hashFiles('**/composer.lock') }}

    - uses: Pararius/[email protected]
      id: composer-update
      with:
        working-dir: ./
        composer-token: ${{ secrets.COMPOSER_TOKEN }}
        composer-cache: $COMPOSER_CACHE_DIR

    - name: Current date
      run: echo "DATE=$(date +%Y%m%d)" >> $GITHUB_ENV

    - name: Create pull request
      uses: peter-evans/[email protected]
      with:
        token: ${{ secrets.GITHUB_TOKEN }}
        branch: php-update-${{ env.DATE }}
        branch-suffix: random
        commit-message: '[ci] updated PHP dependencies'
        title: Updated PHP dependencies
        body: ${{ steps.composer-update.outputs.diff }}
        labels: dependencies
        base: master

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published