-
Notifications
You must be signed in to change notification settings - Fork 1
39 lines (36 loc) · 1.05 KB
/
update-php.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
---
name: Update PHP Docker images
on:
workflow_dispatch:
schedule:
- cron: "00 6 * * *"
permissions:
contents: read
jobs:
php-update:
name: Update PHP Docker image SHAs
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: Authenticate with Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_TOKEN }}
- name: "Run update script"
run: ./bin/update-php-images-sha.sh
- name: Check for changes
run: git diff --exit-code
id: diff
continue-on-error: true
- name: "Create pull request"
uses: peter-evans/create-pull-request@v5
if: steps.diff.outcome == 'failure'
with:
add-paths: Dockerfile
commit-message: Update PHP Docker image SHAs
branch: update-php-docker-image-shas
delete-branch: true
title: Update PHP Docker image SHAs
token: ${{ secrets.PAT_TOKEN }}
team-reviewers: developers