forked from ArmDeveloperEcosystem/arm-learning-paths
-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (32 loc) · 944 Bytes
/
profanity.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: profanity
# Controls when the workflow will run
on:
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
profanity_scan:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
submodules: true # Fetch Hugo Themes
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.11.3
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install better_profanity
- name: Scan for profanities
run: |
python tools/profanity.py
cat profanity_log.txt
- name: Export profanities
uses: actions/upload-artifact@v4
with:
name: profanities
path: profanity_log.txt
retention-days: 5