Skip to content

JDHelloWorld-sync #6593

JDHelloWorld-sync

JDHelloWorld-sync #6593

Workflow file for this run

name: JDHelloWorld-sync
on:
schedule:
- cron: '1 */3 * * *'
workflow_dispatch:
watch:
types: started
repository_dispatch:
types: sync-JDHelloWorld-JavaScript
jobs:
repo-sync:
env:
PAT: ${{ secrets.PAT }}
runs-on: ubuntu-latest
if: github.event_name == 'schedule' || github.event.repository.owner.id == github.event.sender.id
steps:
- uses: actions/checkout@v2
with:
persist-credentials: false
- name: sync JDHelloWorld-JavaScript
uses: repo-sync/github-sync@v2
if: env.PAT
with:
source_repo: "https://github.com/JDHelloWorld/jd_scripts.git"
source_branch: "main"
destination_branch: "JDHelloWorld"
github_token: ${{ secrets.PAT }}
# Runs a single command using the runners shell
- name: Run a one-line script
run: echo Hello, world!
# Runs a set of commands using the runners shell
- name: Run a multi-line script
run: |
echo Add other actions to build,
echo test, and deploy your project.