From d825cbce8880e018f3e61347436e18a477637d66 Mon Sep 17 00:00:00 2001 From: aleidk Date: Tue, 5 Nov 2024 22:39:43 +0000 Subject: [PATCH] chore: add workflow file --- .forgejo/workflows/create.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .forgejo/workflows/create.yml diff --git a/.forgejo/workflows/create.yml b/.forgejo/workflows/create.yml new file mode 100644 index 0000000..6ef385c --- /dev/null +++ b/.forgejo/workflows/create.yml @@ -0,0 +1,27 @@ +name: Template migration + +# The workflow will run only when `use this template` is used +on: + create: + +jobs: + create: + # We will only run this action when the repository isn't the template repository + # Reference https://docs.github.com/en/actions/learn-github-actions/contexts + # Reference https://docs.github.com/en/actions/learn-github-actions/expressions + if: ${{ !github.event.repository.is_template }} + + runs-on: ubuntu-latest + permissions: write-all + + steps: + - name: "Check out the repo" + uses: "actions/checkout@v4" + + - name: "Update commit" + uses: stefanzweifel/git-auto-commit-action@v4 + with: + commit_message: "chore: initial commit" + commit_options: "--amend" + push_options: "--force" + skip_fetch: true