https://github.com/swisslife-oss/actions
https://github.com/swisslife-oss/actions
Last synced: 7 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/swisslife-oss/actions
- Owner: SwissLife-OSS
- License: mit
- Created: 2023-08-27T07:45:25.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-01-22T08:39:48.000Z (over 2 years ago)
- Last Synced: 2024-04-23T02:21:58.505Z (over 2 years ago)
- Size: 4.88 KB
- Stars: 1
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
## Overview
This repository contains custom GitHub Actions that are used across various repositories within our organization. These actions help to standardize CI/CD processes, code quality checks, and other automated workflows.
## Usage
To use any of the custom actions in your repository, reference them in your workflow YAML file like so:
### Pull Request
[Squadron Example](https://github.com/SwissLife-OSS/squadron/blob/master/.github/workflows/pull-request.yml)
```yaml
- name: Build, Test and Sonar
uses: swisslife-oss/actions/pull-request@main
with:
sonar_token: ${{ secrets.SONAR_TOKEN }}
sonar_project_key: 'SwissLife-OSS_Squadron'
sonar_project_name: "squadron"
pr_number: ${{ github.event.pull_request.number }}
pr_source_branch: ${{ github.head_ref }}
pr_target_branch: ${{ github.base_ref }}
github_repository: ${{ github.repository }}
sonar_exclusions: ${{ vars.SONAR_EXCLUSIONS }}
```
### Release
[Squadron Example](https://github.com/SwissLife-OSS/squadron/blob/master/.github/workflows/release.yml)
```yaml
- name: Build, Test and Push
uses: swisslife-oss/actions/release-packages@main
with:
tag: ${{ github.ref_name }}
nuget_api_key: ${{ secrets.NUGET_API_KEY }}
enable_push: 'yes'
```
```yaml
- name: Build, Test and Sonar
uses: swisslife-oss/actions/release-sonar@main
with:
tag: ${{ github.ref_name }}
sonar_token: ${{ secrets.SONAR_TOKEN }}
sonar_project_key: 'SwissLife-OSS_Squadron'
sonar_project_name: "squadron"
sonar_exclusions: ${{ vars.SONAR_EXCLUSIONS }}
```
## Community
This project has adopted the code of conduct defined by the [Contributor Covenant](https://contributor-covenant.org/)
to clarify expected behavior in our community. For more information, see the [Swiss Life OSS Code of Conduct](https://swisslife-oss.github.io/coc).