Welcome to our repository of reusable GitHub Actions workflows. These workflows are designed to be easily integrated into any GitHub repository to automate various aspects of software development and maintenance processes.
Currently, the repository hosts the following reusable workflows:
- SonarCloud Analysis: Automates the code quality checking using SonarCloud.
- Notification: Github Event Notification in Google WorkSpace and Slack Channel .
- Stale Issue/PR Handler: Manages inactive issues and pull requests to keep project boards clean and updated.
Before using these workflows, make sure you have:
- A GitHub account.
- Required permissions to add workflows and secrets to your GitHub repositories.
-
Choose a Workflow: Decide which workflow from this repository you want to use.
-
Add Secrets (if required): Some workflows might require you to set up repository secrets. For instance, the SonarCloud Analysis needs secrets like
SONAR_TOKEN. You can add these secrets by navigating to:Settings > Secrets > Actions > New repository secret -
Import the Workflow: To utilize a workflow, add it to a
.ymlfile in the.github/workflowsdirectory of your repository. For example, to use the SonarCloud Analysis, you might write:name: SonarCloud Analysis on: push: branches: - main - develop pull_request: jobs: sonarcloud: uses: berrybytes/workflows/.github/workflows/sonarcloud-analysis.yml@main secrets: SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} SONAR_ORGANIZATION: ${{ secrets.SONAR_ORGANIZATION }} SONAR_PROJECT_KEY: ${{ secrets.SONAR_PROJECT_KEY }}