From 94e0d8cd00aadfa225af1c7c2c150bfbb7c2ea92 Mon Sep 17 00:00:00 2001 From: Jamy Date: Thu, 5 Sep 2024 00:26:48 +0200 Subject: [PATCH] Use shared actions to auto assign issues and build and update template (#140) --- .github/workflows/auto-assign-issues.yml | 12 ++++++++++++ .github/workflows/update.yml | 25 +++++++----------------- 2 files changed, 19 insertions(+), 18 deletions(-) create mode 100644 .github/workflows/auto-assign-issues.yml diff --git a/.github/workflows/auto-assign-issues.yml b/.github/workflows/auto-assign-issues.yml new file mode 100644 index 0000000..b4badf9 --- /dev/null +++ b/.github/workflows/auto-assign-issues.yml @@ -0,0 +1,12 @@ +name: "Auto assignment for issues" + +on: + issues: + types: ["opened"] + +jobs: + auto-assign: + uses: "tinted-theming/home/.github/workflows/shared-auto-assign-issues.yml@main" + secrets: + token: ${{ secrets.BOT_ACCESS_TOKEN }} + diff --git a/.github/workflows/update.yml b/.github/workflows/update.yml index b1be93b..7b0b32f 100644 --- a/.github/workflows/update.yml +++ b/.github/workflows/update.yml @@ -1,24 +1,13 @@ -name: Update with the latest colorschemes +name: "Update with the latest tinted-theming colorschemes" on: workflow_dispatch: schedule: - cron: "0 0 * * 0" # https://crontab.guru/every-week jobs: - run: - runs-on: ubuntu-latest - steps: - - name: Fetch the repository code - uses: actions/checkout@v3 - with: - token: ${{ secrets.BOT_ACCESS_TOKEN }} - - name: Update schemes - uses: tinted-theming/base16-builder-go@latest - - name: Commit the changes, if any - uses: stefanzweifel/git-auto-commit-action@v4 - with: - commit_message: Update with the latest tinted-theming colorschemes - branch: ${{ github.head_ref }} - commit_user_name: tinted-theming-bot - commit_user_email: tintedtheming@proton.me - commit_author: tinted-theming-bot + build-and-commit: + uses: "tinted-theming/home/.github/workflows/shared-build-template-and-commit-themes.yml@main" + secrets: + token: ${{ secrets.BOT_ACCESS_TOKEN }} + with: + ref: ${{ github.head_ref }}