Skip to content

chore(deps-dev): Bump express in /search/search-dev-tools (#5388) #1

chore(deps-dev): Bump express in /search/search-dev-tools (#5388)

chore(deps-dev): Bump express in /search/search-dev-tools (#5388) #1

Workflow file for this run

# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
name: Deploy
on:
push:
branches:
- "develop"
permissions:
contents: read
jobs:
deploy:
name: "Deploy"
runs-on: ubuntu-latest
if: github.ref_type == 'branch'
env:
SOURCE_REPO_PATH: main
TARGET_REPO_PATH: built
EXT_REPO_PATH: ext
permissions:
contents: write
steps:
- name: Check out the source code
uses: actions/[email protected]
with:
submodules: recursive
path: ${{ env.SOURCE_REPO_PATH }}
- name: Check out Automattic/vip-go-mu-plugins-ext
uses: actions/[email protected]
with:
repository: Automattic/vip-go-mu-plugins-ext
path: ${{ env.EXT_REPO_PATH }}
- name: Check out Automattic/vip-go-mu-plugins-built
uses: actions/[email protected]
with:
repository: Automattic/vip-go-mu-plugins-built
path: ${{ env.TARGET_REPO_PATH }}
ssh-key: ${{ secrets.SSH_DEPLOY_KEY }}
- name: Configure .git
run: |
git config user.name "${GITHUB_ACTOR}"
git config user.email "[email protected]"
git config push.default "current"
working-directory: ${{ env.TARGET_REPO_PATH }}
- name: Synchronize files
run: |
rsync --delete -a "${GITHUB_WORKSPACE}/${SOURCE_REPO_PATH}/" "${GITHUB_WORKSPACE}/${EXT_REPO_PATH}/"* "${GITHUB_WORKSPACE}/${TARGET_REPO_PATH}/" --exclude-from="${GITHUB_WORKSPACE}/${SOURCE_REPO_PATH}/.dockerignore" --exclude-from="${GITHUB_WORKSPACE}/${EXT_REPO_PATH}/.dockerignore"
- name: Clean up
run: |
TARGET="${GITHUB_WORKSPACE}/${TARGET_REPO_PATH}"
find "${TARGET}" -name ".svn" -exec rm -rfv {} \; 2> /dev/null
find "${TARGET}" -name ".git*" -not -name ".github" -not -name ".git" -exec rm -rfv {} \; 2> /dev/null
cp -vf "${GITHUB_WORKSPACE}/${SOURCE_REPO_PATH}/README-PUBLIC.md" "${TARGET}/README.md"
cp -vf "${GITHUB_WORKSPACE}/${SOURCE_REPO_PATH}/composer.json.tpl" "${TARGET}/composer.json"
- name: Commit!
run: |
git add -A .
git status
if [ -n "$(git diff --stat --cached)" ]; then
git commit -am "Built from vip-go-mu-plugins@${GITHUB_SHA}"
git push
fi
working-directory: ${{ env.TARGET_REPO_PATH }}