Skip to content

Commit

Permalink
testing
Browse files Browse the repository at this point in the history
  • Loading branch information
parthea committed Jun 20, 2023
1 parent c622eef commit 3ffb496
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 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 }}

- name: Check out main branch
uses: actions/checkout@v3
with:
ref: refs/heads/main
repository: 'yoshi-code-bot/google-api-python-client'
token: ${{secrets.YOSHI_CODE_BOT_TOKEN}}


- name: Create branch
run: |
Expand Down Expand Up @@ -68,7 +79,7 @@ jobs:
working-directory: ./scripts

- name: Push changes
run: git push -f --set-upstream origin update-discovery-artifacts-${{ steps.date.outputs.current_date }}
run: git push update-discovery-artifacts-${{ steps.date.outputs.current_date }}

- name: Prepare summary for PR Body
id: pr_body
Expand Down

0 comments on commit 3ffb496

Please sign in to comment.