Skip to content

Commit

Permalink
Merge pull request #1 from sonatype-nexus-community/feat/gh-workflow
Browse files Browse the repository at this point in the history
feat: add workflow to run process
  • Loading branch information
madpah authored Oct 14, 2024
2 parents 40591d6 + e6b78c3 commit cbbf65b
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 2 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/apply-standards.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Enforce Standards

on:
workflow_dispatch:

jobs:
enforce-standards:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Configure Python
uses: actions/setup-python@v5
with:
python-version: '3.12'

- name: Install poetry
# see https://github.com/marketplace/actions/setup-poetry
uses: Gr1N/setup-poetry@v9
with:
poetry-version: ${{ env.POETRY_VERSION }}

- name: Install dependencies
run: poetry install --no-root

- name: Apply Standards
run: python -m github_standards > output.txt
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}

- name: Save Run Output
uses: actions/upload-artifact@v4
with:
name: apply-standards-log
path: output.txt
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ This project is part of the [Sonatype Nexus Community](https://github.com/sonaty
Last but not least of all - have fun!

<!-- Links Section -->
[shield_gh-workflow-test]: https://img.shields.io/github/actions/workflow/status/sonatype-nexus-community/github-management/test.yml?branch=main&logo=GitHub&logoColor=white "build"
[shield_gh-workflow-test]: https://img.shields.io/github/actions/workflow/status/sonatype-nexus-community/github-management/apply-standards.yaml?branch=main&logo=GitHub&logoColor=white "build"
[shield_license]: https://img.shields.io/github/license/sonatype-nexus-community/github-management?logo=open%20source%20initiative&logoColor=white "license"

[link_gh-workflow-test]: https://github.com/sonatype-nexus-community/github-management/actions/workflows/test.yml?query=branch%3Amain
[link_gh-workflow-test]: https://github.com/sonatype-nexus-community/github-management/actions/workflows/apply-standards.yaml?query=branch%3Amain
[license_file]: https://github.com/sonatype-nexus-community/github-management/blob/main/LICENSE

0 comments on commit cbbf65b

Please sign in to comment.