pmd/.github/workflows/git-repo-sync.yml
Andreas Dangel 4bfb35cb86 Use GITHUB_TOKEN or deploy key
Also use pmd-bot@users.noreply.github.com as committer email.
2021-10-15 12:09:22 +02:00

31 lines
695 B
YAML

name: git-repo-sync
on:
push:
branches:
- main
- master
tags:
- '**'
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
continue-on-error: false
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 100
- name: Setup Environment
shell: bash
run: |
echo "LANG=en_US.UTF-8" >> $GITHUB_ENV
echo "PMD_CI_SCRIPTS_URL=https://raw.githubusercontent.com/pmd/build-tools/master/scripts" >> $GITHUB_ENV
- name: Sync
run: .ci/git-repo-sync.sh
shell: bash
env:
PMD_CI_SECRET_PASSPHRASE: ${{ secrets.PMD_CI_SECRET_PASSPHRASE }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}