This repository has been archived by the owner on Jul 8, 2024. It is now read-only.
test #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: "Reflesh Template" | |
on: | |
push: | |
branches: ["master"] | |
pull_request: | |
branches: ["master"] | |
schedule: | |
- cron: "28 0 * * 3" | |
concurrency: | |
group: "PullAndFix" | |
cancel-in-progress: false | |
jobs: | |
PullAndFix: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Set current datetime as env variable | |
env: | |
TZ: "Asia/Tokyo" | |
run: echo "CURRENT_DATETIME=$(date +'%Y%m%d%H%M%S')" >> $GITHUB_ENV | |
- name: Remote Add | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: git remote add template https://github.com/UniPro-tech/NextBlogComplateStarter.git | |
- name: Pull | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: | | |
git fetch template master:template | |
- name: Checkout | |
run: git checkout template | |
- name: Delete workflow | |
run: | | |
rm -r ./.github | |
- name: Commit | |
run: | | |
git config --global user.email "[email protected]" | |
git config --global user.name "Workflow" | |
git commit -a -m "Del workflow" | |
- name: Push | |
env: | |
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} | |
run: git push -u origin template |