Skip to content

Commit

Permalink
for testing purposes
Browse files Browse the repository at this point in the history
  • Loading branch information
parthea committed Jun 20, 2023
1 parent c622eef commit e36329d
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ on:
# * is a special character in YAML so you have to quote this string
# Run this Github Action every Tuesday at 7 AM UTC
- cron: '0 7 * * 2'
pull_request:
branches:
- main

jobs:
build:
Expand All @@ -29,12 +32,20 @@ jobs:
steps:
- name: Get current date
id: date
run: echo "::set-output name=current_date::$(date +'%Y-%m-%d')"
run: echo "::set-output name=current_date::$(date +'%Y-%m-%d-%HH%MM%SS')"

- name: Sync fork
run: gh repo sync $REPOSITORY -b $BRANCH_NAME
env:
GITHUB_TOKEN: ${{ secrets.YOSHI_CODE_BOT_TOKEN }}
REPOSITORY: ${{ github.event.pull_request.head.repo.full_name }}
BRANCH_NAME: ${{ github.ref_name }}

- name: Check out main branch
uses: actions/checkout@v3
with:
ref: refs/heads/main
ref: ${{ github.event.pull_request.head.ref }}
repository: ${{ github.event.pull_request.head.repo.full_name }}

- name: Create branch
run: |
Expand Down Expand Up @@ -114,7 +125,6 @@ jobs:
owner: owner,
repo: repo,
base: 'main',
head: `${owner}:${branch}`,
title: prTitle,
body: prBody
})
Expand Down

0 comments on commit e36329d

Please sign in to comment.