Update and rename mirror2vercel-cdxy.yaml to mirror4vercel.yaml #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: mirror4vercel | |
on: | |
push: | |
branches: | |
- main | |
workflow_dispatch: | |
permissions: | |
contents: write | |
jobs: | |
sync: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Sync | |
run: | | |
git config --global user.email "${{ secrets.VERCELCDXY_EMAIL }}" | |
git config --global user.name "${{ secrets.VERCELCDXY_USER }}" | |
eval `ssh-agent -s` | |
ssh-add - <<< '${{ secrets.VERCELCDXY_KEY }}' | |
git remote add vercel git@github.com:vercel-cdxy/consumer-demo-app-nextjs.git | |
git fetch vercel | |
git merge vercel/main --allow-unrelated-histories | |
git push vercel --force |