Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cleanup workflows #11

Merged
merged 4 commits into from
Dec 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions .github/actions/install/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Install Tools & Dependencies
description: Installs pnpm, Node.js & package dependencies

runs:
using: composite
steps:
- name: Setup pnpm (corepack enabled)
uses: pnpm/action-setup@v3

- name: Setup Node.js 20.x
uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4
with:
node-version-file: '.node-version'
cache: 'pnpm'

- name: Install Dependencies
run: pnpm ci:install
shell: bash
File renamed without changes.
60 changes: 60 additions & 0 deletions .github/workflows/ci-first-contributor.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
name: CI - First Time Contributor

on:
issues:
types: [opened]
pull_request_target:
types: [opened, closed]

jobs:
check_for_first_interaction:
name: Check for First Interaction
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4

- name: First Interaction Check
uses: zephyrproject-rtos/action-first-interaction@7e6446f8439d8b4399169880c36a3a12b5747699
with:
repo-token: ${{ secrets.STUDIOCMS_SERVICE_TOKEN }}
issue-message: >
Hi @${{ github.event.issue.user.login }} 👋

Welcome to the StudioCMS project! We're excited to have you here. Thanks for opening your first issue! 🎉

If you are reporting a bug, please make sure to include the following information in your issue:
- A clear description of the issue
- Steps to reproduce the issue
- Expected behavior
- Actual behavior
- Environment details (OS, hardware, etc.)

If you have any questions or need help, feel free to ask. We're here to help you! 🚀

If you're interested in contributing to the project, please check out our [Contributing Guide](https://github.com/withstudiocms/.github/blob/main/CONTRIBUTING.md) and join our [Discord community](https://chat.studiocms.dev) to stay in the loop for any future help we may need!

Thanks again for opening your first issue! 🙌

- The StudioCMS Team

pr-opened-message: >
Hello @${{ github.event.pull_request.user.login }}, and thank you for opening your first pull request to StudioCMS! 🎉

Please make sure to review the project's [Contributing Guide](https://github.com/withstudiocms/.github/blob/main/CONTRIBUTING.md) to ensure your pull request meets our quality standards.

We're excited to have you here and appreciate your contribution. If you have not already, please make sure to include the following information in your pull request:
- A clear description of the changes
- Steps to reproduce the issue (if applicable)
- Any relevant screenshots or logs

Our team will review your pull request as soon as possible. If you have any questions or need help, feel free to ask. We're here to help you! 🚀

In the meantime, you will notice that a few checks will run on your pull request. These checks are automated and help us ensure that your changes meet our quality standards. If you see any errors or warnings, don't worry! Our team will help you address them. 😊

pr-merged-message: >
**Congrats and Welcome** @${{ github.event.pull_request.user.login }} to the Contributor Squad! 🎉

If you haven't already, please join our [Discord community](https://chat.studiocms.dev) to stay in the loop for any future help we may need!

- The StudioCMS Team
43 changes: 43 additions & 0 deletions .github/workflows/ci-push-main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: CI - Push to main

on:
workflow_dispatch:
push:
branches:
- main

permissions:
contents: write

jobs:
format:
runs-on: ubuntu-latest
env:
NODE_OPTIONS: "--max_old_space_size=4096"
steps:
- name: Check out code using Git
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
with:
ref: ${{ github.head_ref }}
token: ${{ secrets.STUDIOCMS_SERVICE_TOKEN }}

- name: Install Tools & Dependencies
uses: ./.github/actions/install

- name: Format code
run: pnpm run lint:fix

- name: Commit changes
uses: stefanzweifel/git-auto-commit-action@8621497c8c39c72f3e2a999a26b4ca1b5058a842 # v5
with:
commit_message: '[ci] lint'
branch: ${{ github.head_ref }}
commit_user_name: studiocms-no-reply
commit_user_email: [email protected]
commit_author: StudioCMS <[email protected]>

mergebot:
if: ${{ github.repository_owner == 'withstudiocms' && github.event_name == 'push' && github.event.commits[0].message != '[ci] lint' }}
uses: withstudiocms/automations/.github/workflows/mergebot.yml@main
secrets:
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK_MERGEBOT }}
57 changes: 0 additions & 57 deletions .github/workflows/first-time-pr.yml

This file was deleted.

47 changes: 0 additions & 47 deletions .github/workflows/format.yml

This file was deleted.

12 changes: 0 additions & 12 deletions .github/workflows/mergebot.yml

This file was deleted.

Loading