create update main #41
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: update-main-action | |
run-name: create update main | |
on: | |
schedule: | |
- cron: '0 8 * * 2' | |
jobs: | |
create-production-merge: | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout repository | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: get current date | |
id: date | |
run: | | |
echo "date=$(date +'%Y-%m-%d')" >> "$GITHUB_ENV" | |
- run: echo $date | |
- run: echo "testing string ${{ env.date }}" | |
- name: create pull request | |
run: gh pr create -B main -H production_testing --title "[update main] ${{ env.date }}" --body 'Created by Github Actions' --assignee alexpiet --reviewer alexpiet --reviewer hanhou --reviewer XX-Yin | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |