Skip to content

GitHub Actionsのワークフローで 適切なmelosバージョンを利用するよう修正 (#161) #27

GitHub Actionsのワークフローで 適切なmelosバージョンを利用するよう修正 (#161)

GitHub Actionsのワークフローで 適切なmelosバージョンを利用するよう修正 (#161) #27

name: Template Cleanup
on:
push:
branches:
- main
jobs:
template-cleanup:
runs-on: ubuntu-latest
permissions:
contents: write
issues: write
timeout-minutes: 10
if: github.event.repository.name != 'flutter-mobile-project-template'
steps:
# https://github.com/actions/checkout
- name: Fetch sources
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- name: Create Issues at Initialization
uses: ./.github/actions/create-issue-at-initialization
- name: Cleanup Copilot Settings
uses: ./.github/actions/cleanup-copilot-settings
# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
# Important: Please list the necessary steps above this line.
# Reason: This step involves removing files from the project, which may lead to unexpected outcomes for your step.
# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- name: Remove unnecessary files
uses: ./.github/actions/remove-unnecessary-files
- name: Commit files
run: |
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
git add .
git commit -m "Template cleanup"
# https://github.com/ad-m/github-push-action
- name: Push changes
uses: ad-m/github-push-action@d91a481090679876dfc4178fef17f286781251df # v0.8.0
with:
branch: main
github_token: ${{ secrets.GITHUB_TOKEN }}