Skip to content

Update

Update #744

Workflow file for this run

name: Update
on:
workflow_dispatch:
schedule:
- cron: "0 6 * * *"
jobs:
main:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- run: wget -O version.json "https://api.launchpad.net/devel/~ondrej/+archive/ubuntu/php?ws.op=getPublishedSources&exact_match=true&source_name=php8.1&status=Published&distro_series=https://api.launchpad.net/devel/ubuntu/focal"
- name: Get latest version
id: version
uses: notiz-dev/github-action-json-property@release
with:
path: 'version.json'
prop_path: 'entries.0.source_package_version'
- id: php
run: 'echo "version=$(echo "${{ steps.version.outputs.prop }}" | cut -d- -f1)" >> "$GITHUB_OUTPUT"'
- run: sed -i "s/PHP.*Composer/PHP ${{ steps.php.outputs.version }} + Composer/g" README.md
- run: rm version.json
- name: Create Pull Request
uses: peter-evans/[email protected]
with:
token: ${{ secrets.PAT }}
commit-message: 'PHP ${{steps.php.outputs.version}}'
committer: 'Nikolas Evers <[email protected]>'
branch: 'php-${{steps.php.outputs.version}}'
delete-branch: true
title: 'PHP ${{steps.php.outputs.version}}'
body: 'This pull request was [created automatically](https://github.com/vintagesucks/docker-focal-node16-chrome-php8.1/blob/main/.github/workflows/update.yml).'