Skip to content

added guzzle dependancy in dependabot #63

added guzzle dependancy in dependabot

added guzzle dependancy in dependabot #63

name: Update Packages and Create Pull Request
on:
schedule:
- cron: '0 0 * * 1' # Runs weekly on Mondays
push:
branches:
- wip # Trigger on pushes to the wip branch
paths-ignore:
- .idea/**
- docs/**
jobs:
update-packages:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v3
- name: Set up PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.1'
tools: composer
- name: Add Guzzle Dependency
run: composer require guzzlehttp/guzzle:^7.4
- name: Install Dependencies
run: composer install
- name: Run Update Script
run: php .github/update_packages.php
- name: Commit Changes
run: |
git config --local user.name "github-actions[bot]"
git config --local user.email "github-actions[bot]@users.noreply.github.com"
git add config/packages.yml
git diff --quiet && echo "No changes to commit" || git commit -m "Update packages.yml with latest versions"
git push origin wip || echo "No changes to push"
- name: Create Pull Request
uses: peter-evans/create-pull-request@v4
with:
branch: update-packages
title: Update packages.yml with latest versions
body: |
This pull request updates the `packages.yml` file with the latest stable versions of dependencies.
labels: dependencies