Skip to content

This docker image is used to build updates for Pantheon-maintained upstreams (drops-8 et. al.) from their respective upstreams.

Notifications You must be signed in to change notification settings

pantheon-systems/upstream-update-automerge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Upstream Update "Automerge"

This action runs the "automerge" script used to deploy changes from the default branch to the master branch on Pantheon's upstream repositories (wordpress, drops-7). Automerge copies commits to the master branch if the latest commit on default is authored by "Pantheon Automation <[email protected]>". It then rebases the default branch onto master and updates default with a force push. Commits that edit .circleci/ or .github/ directories are not copied to master.

Usage

name: Automerge
on:
  push:
    branches:
      - default

permissions:
  contents: write

jobs:
  automerge:
    runs-on: ubuntu-latest
    steps:
        - uses: actions/checkout@v4
          with:
            fetch-depth: 0
        - uses: pantheon-systems/upstream-update-build@v1
          env:
            PAT_TOKEN: ${{ secrets.PAT_TOKEN }}

PAT_TOKEN

PAT_TOKEN must be a personal access token with permission to force-push to branches of the project this action is run on.

Test

python3 test.py

Previous Iterations

This action is implemented from a version of the script that was previously deployed as a docker image at quay.io/getpantheon/upstream-update-build:1.x and used in the CI scripts for pantheon-systems/WordPress and pantheon-systems/drops-7. The source for that docker image can still be found on the 1.x branch.

About

This docker image is used to build updates for Pantheon-maintained upstreams (drops-8 et. al.) from their respective upstreams.

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 5