Commit 0ad29adfa6
Unsigned
Layout: unified ยท split
.github/workflows/check-domain.yml deleted โ42
| @@ -1,42 +0,0 @@ | |||
| 1 | # Checks domain and SSL status, then raises an issue if either is expiring soon | ||
| 2 | name: ๐ Check Domain Expiry | ||
| 3 | on: | ||
| 4 | workflow_dispatch: | ||
| 5 | schedule: | ||
| 6 | - cron: '0 5 * * 6' # Every Saturday morning. | ||
| 7 | jobs: | ||
| 8 | check-domain: | ||
| 9 | runs-on: ubuntu-latest | ||
| 10 | name: Check domain | ||
| 11 | strategy: | ||
| 12 | matrix: | ||
| 13 | domain: | ||
| 14 | - https://awesome-privacy.xyz | ||
| 15 | steps: | ||
| 16 | - name: Check domain SSL and registry expire date | ||
| 17 | id: check-domain | ||
| 18 | uses: codex-team/action-check-domain@v1 | ||
| 19 | with: | ||
| 20 | url: ${{ matrix.domain }} | ||
| 21 | - name: Raise issue if domain expiring soon | ||
| 22 | if: ${{ steps.check-domain.outputs.paid-till-days-left && steps.check-domain.outputs.paid-till-days-left < 30 }} | ||
| 23 | uses: rishabhgupta/git-action-issue@v2 | ||
| 24 | with: | ||
| 25 | token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }} | ||
| 26 | assignees: Lissy93 | ||
| 27 | title: '[WEBSITE] Domain Expiring Soon' | ||
| 28 | body: > | ||
| 29 | **Priority Notice** | ||
| 30 | Domain, ${{ matrix.domain }} will expire in ${{ steps.check-domain.outputs.paid-till-days-left }} days. | ||
| 31 | @Lissy93 - Please take action immediately to prevent any downtime | ||
| 32 | - name: Raise issue if SSL Cert expiring soon | ||
| 33 | if: ${{ steps.check-domain.outputs.ssl-expire-days-left && steps.check-domain.outputs.ssl-expire-days-left < 14 }} | ||
| 34 | uses: rishabhgupta/git-action-issue@v2 | ||
| 35 | with: | ||
| 36 | token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }} | ||
| 37 | assignees: Lissy93 | ||
| 38 | title: '[WEBSITE] SSL Cert Expiring Soon' | ||
| 39 | body: > | ||
| 40 | **Priority Notice** | ||
| 41 | The SSL Certificate for ${{ matrix.domain }} will expire in ${{ steps.check-domain.outputs.ssl-expire-days-left }} days, on ${{ steps.check-domain.outputs.ssl-expire-date }}. | ||
| 42 | @Lissy93 - Please take action immediately to prevent any downtime | ||
.github/workflows/compile-pdf.yml deleted โ44
| @@ -1,44 +0,0 @@ | |||
| 1 | # Generates and saved a PDF document from the main markdown file | ||
| 2 | # Easier to read on certain devices, or for users with accesibility needs | ||
| 3 | |||
| 4 | name: ๐ Compile PDF Document | ||
| 5 | on: | ||
| 6 | workflow_dispatch: # Manual dispatch | ||
| 7 | schedule: | ||
| 8 | - cron: '0 5 * * 6' # Every Saturday morning. | ||
| 9 | jobs: | ||
| 10 | # Job #1 - Generate an embedded SVG asset, showing all contributors | ||
| 11 | compile-pdf: | ||
| 12 | runs-on: ubuntu-latest | ||
| 13 | steps: | ||
| 14 | - name: Checkout ๐๏ธ | ||
| 15 | uses: actions/checkout@v2 | ||
| 16 | - name: Make PDF ๐ | ||
| 17 | uses: baileyjm02/markdown-to-pdf@v1.1.0 | ||
| 18 | with: | ||
| 19 | input_dir: . | ||
| 20 | output_dir: .github/assets/ | ||
| 21 | build_pdf: true | ||
| 22 | build_html: false | ||
| 23 | table_of_contents: false | ||
| 24 | - name: Upload Artifact ๐ค | ||
| 25 | uses: actions/upload-artifact@v3 | ||
| 26 | with: | ||
| 27 | name: awesome-privacy-pdf | ||
| 28 | path: .github/assets/README.pdf | ||
| 29 | - name: Commit file โ | ||
| 30 | run: | | ||
| 31 | git config --local user.email "alicia-gh-bot@mail.as93.net" | ||
| 32 | git config --local user.name "liss-bot" | ||
| 33 | git add .github/assets/*.pdf | ||
| 34 | if ! git diff-index --quiet HEAD; then | ||
| 35 | git commit -m "Generate PDF file" | ||
| 36 | else | ||
| 37 | echo "Nothing to do" | ||
| 38 | fi | ||
| 39 | - name: Push changes โก๏ธ | ||
| 40 | uses: ad-m/github-push-action@master | ||
| 41 | with: | ||
| 42 | github_token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }} | ||
| 43 | branch: ${{ github.ref }} | ||
| 44 | |||
.github/workflows/credits.yml deleted โ34
| @@ -1,34 +0,0 @@ | |||
| 1 | # Inserts list of contributors and community members into ./docs/credits.md | ||
| 2 | name: ๐ Generate Contributor Credits | ||
| 3 | on: | ||
| 4 | workflow_dispatch: # Manual dispatch | ||
| 5 | schedule: | ||
| 6 | - cron: '0 5 * * 6' # Every Saturday morning. | ||
| 7 | jobs: | ||
| 8 | # Job #1 - Inserts sponsors into README | ||
| 9 | insert-sponsors: | ||
| 10 | runs-on: ubuntu-latest | ||
| 11 | steps: | ||
| 12 | - name: Checkout ๐๏ธ | ||
| 13 | uses: actions/checkout@v2 | ||
| 14 | - name: Generate Sponsors in Credits ๐ | ||
| 15 | uses: JamesIves/github-sponsors-readme-action@1.0.5 | ||
| 16 | with: | ||
| 17 | token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }} | ||
| 18 | file: '.github/README.md' | ||
| 19 | # Job #2 - Inserts contributors into README | ||
| 20 | insert-credits: | ||
| 21 | runs-on: ubuntu-latest | ||
| 22 | name: Inserts contributors into credits.md | ||
| 23 | steps: | ||
| 24 | - name: Contribute List - Credits Page | ||
| 25 | uses: akhilmhdh/contributors-readme-action@v2.2 | ||
| 26 | env: | ||
| 27 | GITHUB_TOKEN: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }} | ||
| 28 | with: | ||
| 29 | image_size: 80 | ||
| 30 | readme_path: .github/README.md | ||
| 31 | columns_per_row: 6 | ||
| 32 | commit_message: 'Updates contributors list' | ||
| 33 | committer_username: liss-bot | ||
| 34 | committer_email: liss-bot@d0h.co | ||
.github/workflows/pr-labeler.yml deleted โ25
| @@ -1,25 +0,0 @@ | |||
| 1 | # Applies labels based on the pull request category | ||
| 2 | name: ๐ท๏ธ PR Labeler | ||
| 3 | on: | ||
| 4 | pull_request: | ||
| 5 | types: [opened, edited] | ||
| 6 | jobs: | ||
| 7 | label-pr: | ||
| 8 | runs-on: ubuntu-latest | ||
| 9 | permissions: write-all | ||
| 10 | steps: | ||
| 11 | - name: Apply Labels | ||
| 12 | if: "! contains(github.event.pull_request.body, 'Addition / Amendment / Removal / Spelling or Grammar / Website Update / Misc')" | ||
| 13 | uses: Naturalclar/issue-action@v2.0.2 | ||
| 14 | with: | ||
| 15 | title-or-body: both | ||
| 16 | github-token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }} | ||
| 17 | parameters: > | ||
| 18 | [ | ||
| 19 | {"keywords": ["Addition"], "labels": ["Addition"] }, | ||
| 20 | {"keywords": ["Amendment"], "labels": ["Amendment"] }, | ||
| 21 | {"keywords": ["Removal"], "labels": ["Removal"] }, | ||
| 22 | {"keywords": ["Spelling or Grammar"], "labels": ["Grammar"] }, | ||
| 23 | {"keywords": ["Website Update"], "labels": ["Website"] }, | ||
| 24 | {"keywords": ["Misc"], "labels": ["Misc"] } | ||
| 25 | ] | ||
.github/workflows/spell-check.yml deleted โ20
| @@ -1,20 +0,0 @@ | |||
| 1 | # Spell check newly added content, when PR opened and, put typo list as comment | ||
| 2 | name: โ๏ธ Spell Check | ||
| 3 | on: [pull_request] | ||
| 4 | jobs: | ||
| 5 | misspell: | ||
| 6 | name: runner / misspell | ||
| 7 | runs-on: ubuntu-latest | ||
| 8 | steps: | ||
| 9 | - name: Checkout ๐๏ธ | ||
| 10 | uses: actions/checkout@v2 | ||
| 11 | - name: Run Spell Check ๐ | ||
| 12 | uses: reviewdog/action-misspell@v1 | ||
| 13 | with: | ||
| 14 | github_token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }} | ||
| 15 | locale: US | ||
| 16 | level: info | ||
| 17 | reporter: github-pr-review | ||
| 18 | path: . | ||
| 19 | filter_mode: added | ||
| 20 | fail_on_error: false | ||
.github/workflows/sync-mirror.yml deleted โ17
| @@ -1,17 +0,0 @@ | |||
| 1 | # Pushes the contents of the repo to the Codeberg mirror | ||
| 2 | name: ๐ช Mirror to Codeberg | ||
| 3 | on: | ||
| 4 | workflow_dispatch: # Manual dispatch | ||
| 5 | schedule: | ||
| 6 | - cron: '0 5 * * 6' | ||
| 7 | jobs: | ||
| 8 | codeberg: | ||
| 9 | runs-on: ubuntu-latest | ||
| 10 | steps: | ||
| 11 | - uses: actions/checkout@v2 | ||
| 12 | with: | ||
| 13 | fetch-depth: 0 | ||
| 14 | - uses: pixta-dev/repository-mirroring-action@v1 | ||
| 15 | with: | ||
| 16 | target_repo_url: "git@codeberg.org:alicia/awesome-privacy.git" | ||
| 17 | ssh_private_key: ${{ secrets.CODEBERG_SSH }} | ||
.github/workflows/ticket-check.yml deleted โ40
| @@ -1,40 +0,0 @@ | |||
| 1 | # Checks newly opened issues contain enough info, and follow the required format | ||
| 2 | name: ๐ซ Issue Validator | ||
| 3 | on: | ||
| 4 | issues: | ||
| 5 | types: [opened, edited] | ||
| 6 | jobs: | ||
| 7 | check-title: | ||
| 8 | runs-on: ubuntu-latest | ||
| 9 | permissions: write-all | ||
| 10 | steps: | ||
| 11 | - name: Check Default Title | ||
| 12 | if: "endsWith(github.event.issue.title, '<title>')" | ||
| 13 | uses: peter-evans/create-or-update-comment@v2 | ||
| 14 | with: | ||
| 15 | token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }} | ||
| 16 | issue-number: ${{ github.event.issue.number }} | ||
| 17 | body: | | ||
| 18 | Please ensure that your ticket has an appropriate title | ||
| 19 | - name: Check Title Contains Categroy | ||
| 20 | if: "!(startsWith(github.event.issue.title, '[') && contains(github.event.issue.title, ']'))" | ||
| 21 | uses: peter-evans/create-or-update-comment@v2 | ||
| 22 | with: | ||
| 23 | token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }} | ||
| 24 | issue-number: ${{ github.event.issue.number }} | ||
| 25 | body: | | ||
| 26 | Please ensure that your ticket's title is preceded with a category. | ||
| 27 | For example, `[ADDITION]`, `[AMENDMENT]`, `[REMOVAL]` or `[QUESTION]`. | ||
| 28 | - name: Check Quality Checklist | ||
| 29 | if: "contains(github.event.issue.body, '[ ]') || !(contains(github.event.issue.body, '[X]') || contains(github.event.issue.body, '[x]'))" | ||
| 30 | uses: peter-evans/create-or-update-comment@v2 | ||
| 31 | with: | ||
| 32 | token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }} | ||
| 33 | issue-number: ${{ github.event.issue.number }} | ||
| 34 | body: | | ||
| 35 | Please ensure that you've followed the issue template fully. | ||
| 36 | It's important that you complete the quality & transparency checklist. | ||
| 37 | |||
| 38 | |||
| 39 | |||
| 40 | |||
.github/workflows/validate-pr.yml deleted โ90
| @@ -1,90 +0,0 @@ | |||
| 1 | # Checks that PR title conform to contributing standards (or at least !== Update README.md) | ||
| 2 | name: โณ Validate PR | ||
| 3 | on: | ||
| 4 | pull_request: | ||
| 5 | types: [opened, edited, synchronize, reopened] | ||
| 6 | |||
| 7 | permissions: | ||
| 8 | pull-requests: write | ||
| 9 | |||
| 10 | env: | ||
| 11 | BASE_MSG: >+ | ||
| 12 | Thanks for contributing to Awesome-Privacy! Your pull request will be reviewed shortly. | ||
| 13 | |||
| 14 | In the meantime, please be sure that you have read, and complied with the guidelines outlined in the | ||
| 15 | [Contributing Docs](https://github.com/Lissy93/awesome-privacy/blob/main/.github/CONTRIBUTING.md). | ||
| 16 | |||
| 17 | jobs: | ||
| 18 | validate: | ||
| 19 | runs-on: ubuntu-latest | ||
| 20 | steps: | ||
| 21 | - name: Validate Title is not Default | ||
| 22 | if: "contains(github.event.pull_request.title, 'Update README.md')" | ||
| 23 | uses: peter-evans/create-or-update-comment@v2 | ||
| 24 | with: | ||
| 25 | token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }} | ||
| 26 | issue-number: ${{ github.event.pull_request.number }} | ||
| 27 | body: | | ||
| 28 | Hi @${{ github.actor }}, | ||
| 29 | Please update your pull request, to include a more descriptive title. | ||
| 30 | |||
| 31 | - name: Validate Checklist is Completed | ||
| 32 | if: > | ||
| 33 | contains(github.event.pull_request.body, '[ ]') || | ||
| 34 | !(contains(github.event.pull_request.body, '[X]') || contains(github.event.pull_request.body, '[x]')) | ||
| 35 | uses: peter-evans/create-or-update-comment@v2 | ||
| 36 | with: | ||
| 37 | token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }} | ||
| 38 | issue-number: ${{ github.event.pull_request.number }} | ||
| 39 | body: | | ||
| 40 | Hello @${{ github.actor }} ๐ | ||
| 41 | ${{ env.BASE_MSG }} | ||
| 42 | โ ๏ธ It looks like you've not complete the quality and transparency checklist. | ||
| 43 | |||
| 44 | - name: Validate Affiliation Section is Present | ||
| 45 | if: > | ||
| 46 | !contains(github.event.pull_request.body, 'Affiliation') | ||
| 47 | uses: peter-evans/create-or-update-comment@v2 | ||
| 48 | with: | ||
| 49 | token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }} | ||
| 50 | issue-number: ${{ github.event.pull_request.number }} | ||
| 51 | body: | | ||
| 52 | Hello @${{ github.actor }} ๐ | ||
| 53 | ${{ env.BASE_MSG }} | ||
| 54 | โ ๏ธ You must indicate if you are affiliated with any software modified by this PR. | ||
| 55 | If not applicable, you may set this field to N/A. | ||
| 56 | |||
| 57 | - name: Validate Category | ||
| 58 | if: > | ||
| 59 | contains(github.event.pull_request.body, 'Addition / Amendment / Removal / Spelling or Grammar / Website Update / Misc') || | ||
| 60 | !( | ||
| 61 | contains(github.event.pull_request.body, 'Addition') || | ||
| 62 | contains(github.event.pull_request.body, 'Amendment') || | ||
| 63 | contains(github.event.pull_request.body, 'Removal') || | ||
| 64 | contains(github.event.pull_request.body, 'Spelling or Grammar') || | ||
| 65 | contains(github.event.pull_request.body, 'Website Update') || | ||
| 66 | contains(github.event.pull_request.body, 'Misc') | ||
| 67 | ) | ||
| 68 | uses: peter-evans/create-or-update-comment@v2 | ||
| 69 | with: | ||
| 70 | token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }} | ||
| 71 | issue-number: ${{ github.event.pull_request.number }} | ||
| 72 | body: | | ||
| 73 | Hello @${{ github.actor }} ๐ | ||
| 74 | ${{ env.BASE_MSG }} | ||
| 75 | โ ๏ธ You must specify a category | ||
| 76 | Either: `Addition`, `Amendment`, `Removal`, `Spelling or Grammar`, `Website Update`, or `Misc`. | ||
| 77 | |||
| 78 | - name: Validate Supporting Material is Present | ||
| 79 | if: > | ||
| 80 | !contains(github.event.pull_request.body, 'Supporting Material') | ||
| 81 | uses: peter-evans/create-or-update-comment@v2 | ||
| 82 | with: | ||
| 83 | token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }} | ||
| 84 | issue-number: ${{ github.event.pull_request.number }} | ||
| 85 | body: | | ||
| 86 | Hello @${{ github.actor }} ๐ | ||
| 87 | ${{ env.BASE_MSG }} | ||
| 88 | โ ๏ธ If applicable, please ensure you've provided supporting material. | ||
| 89 | |||
| 90 | |||
.github/workflows/welcome-non-stargazers.yml deleted โ18
| @@ -1,18 +0,0 @@ | |||
| 1 | name: โญ Hello non-Stargazers | ||
| 2 | on: | ||
| 3 | issues: | ||
| 4 | types: [opened] | ||
| 5 | jobs: | ||
| 6 | check-user: | ||
| 7 | if: ${{ github.event.comment.author_association != 'CONTRIBUTOR' }} | ||
| 8 | runs-on: ubuntu-latest | ||
| 9 | name: Add comment to issues opened by non-stargazers | ||
| 10 | steps: | ||
| 11 | - name: comment | ||
| 12 | uses: qxip/please-star-light@v4 | ||
| 13 | with: | ||
| 14 | token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }} | ||
| 15 | autoclose: false | ||
| 16 | message: | | ||
| 17 | If you're enjoying Awesome-Privacy, consider dropping us a โญ<br> | ||
| 18 | _<sub>๐ค I'm a bot, and this message was automated</sub>_ | ||