mirror of
https://github.com/Lissy93/personal-security-checklist.git
synced 2024-09-28 20:26:12 +00:00
Adds workflows for content insertion
This commit is contained in:
parent
cb3b87c1f3
commit
8a03cb2b24
4
.github/workflows/insert-checklist.yml
vendored
4
.github/workflows/insert-checklist.yml
vendored
@ -3,7 +3,7 @@ name: ☑️ Generate and insert markdown from YAML
|
|||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
push:
|
push:
|
||||||
branches: [ main ]
|
branches: [ master ]
|
||||||
paths: ['personal-security-checklist.yml']
|
paths: ['personal-security-checklist.yml']
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
@ -40,7 +40,7 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
git config --global user.name "Liss-Bot"
|
git config --global user.name "Liss-Bot"
|
||||||
git config --global user.email "alicia-gh-bot@mail.as93.net"
|
git config --global user.email "alicia-gh-bot@mail.as93.net"
|
||||||
git pull origin main
|
git pull origin master
|
||||||
git add CHECKLIST.md
|
git add CHECKLIST.md
|
||||||
if git diff --staged --quiet; then
|
if git diff --staged --quiet; then
|
||||||
echo "Nothin new added, so nothing to commit, exiting..."
|
echo "Nothin new added, so nothing to commit, exiting..."
|
||||||
|
44
.github/workflows/insert-contributors.yml
vendored
44
.github/workflows/insert-contributors.yml
vendored
@ -1,54 +1,38 @@
|
|||||||
# Inserts list of contributors and community members into ./ATTRIBUTIONS.md
|
# Inserts list of community members into ./README.md
|
||||||
# Also generates an SVG showing all contributors, which is embedded into readme
|
name: 💓 Inserts Contributors & Sponsors
|
||||||
name: 💓 Generate Contributor & SponsorCredits
|
|
||||||
on:
|
on:
|
||||||
workflow_dispatch: # Manual dispatch
|
workflow_dispatch: # Manual dispatch
|
||||||
schedule:
|
schedule:
|
||||||
- cron: '0 1 * * 0' # At 01:00 on Sunday.
|
- cron: '45 1 * * 0' # At 01:45 on Sunday.
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
# Job #1 - Generate an embedded SVG asset, showing all contributors
|
# Job #1 - Fetches sponsors and inserts table into readme
|
||||||
generate-contributors:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- name: Generate contributor SVG 💓
|
|
||||||
uses: bubkoo/contributors-list@v1
|
|
||||||
with:
|
|
||||||
GITHUB_TOKEN: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
|
|
||||||
svgPath: .github/CONTRIBUTORS.svg
|
|
||||||
affiliation: all
|
|
||||||
includeBots: false
|
|
||||||
avatarSize: 96
|
|
||||||
userNameHeight: 20
|
|
||||||
svgWidth: 1024
|
|
||||||
commitMessage: 'Updates contributor SVG'
|
|
||||||
|
|
||||||
# Job #2 - Fetches sponsors and inserts table into attributions page
|
|
||||||
insert-sponsors:
|
insert-sponsors:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
name: Inserts Sponsors 💓
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout 🛎️
|
- name: Checkout
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
- name: Generate Sponsors in Credits 💓
|
- name: Updates readme with sponsors
|
||||||
uses: JamesIves/github-sponsors-readme-action@1.0.5
|
uses: JamesIves/github-sponsors-readme-action@1.0.5
|
||||||
with:
|
with:
|
||||||
token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
|
token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
|
||||||
file: 'ATTRIBUTIONS.md'
|
file: .github/README.md
|
||||||
|
|
||||||
# Job #3 - Fetches contributors and inserts table into attributions page
|
# Job #2 - Fetches contributors and inserts table into readme
|
||||||
insert-credits:
|
insert-contributors:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
name: Inserts contributors into ATTRIBUTIONS.md
|
name: Inserts Contributors 💓
|
||||||
steps:
|
steps:
|
||||||
- name: Contribute List - Attributions Page
|
- name: Updates readme with contributors
|
||||||
uses: akhilmhdh/contributors-readme-action@v2.3.4
|
uses: akhilmhdh/contributors-readme-action@v2.3.4
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
|
||||||
with:
|
with:
|
||||||
image_size: 80
|
image_size: 80
|
||||||
readme_path: ATTRIBUTIONS.md
|
readme_path: .github/README.md
|
||||||
columns_per_row: 6
|
columns_per_row: 6
|
||||||
commit_message: 'Updates contributors list'
|
commit_message: 'docs: Updates contributors list'
|
||||||
committer_username: liss-bot
|
committer_username: liss-bot
|
||||||
committer_email: liss-bot@d0h.co
|
committer_email: liss-bot@d0h.co
|
||||||
|
|
4
.github/workflows/sync-mirror.yml
vendored
4
.github/workflows/sync-mirror.yml
vendored
@ -1,9 +1,9 @@
|
|||||||
# Pushes the contents of the repo to the Codeberg mirror
|
# Pushes the contents of the repo to the Codeberg mirror
|
||||||
name: 🪞 Mirror to Codeberg
|
name: 🪞 Mirror to Codeberg
|
||||||
on:
|
on:
|
||||||
push:
|
|
||||||
branches: [ 'master' ]
|
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
schedule:
|
||||||
|
- cron: '30 0 * * 0'
|
||||||
jobs:
|
jobs:
|
||||||
codeberg:
|
codeberg:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
Loading…
Reference in New Issue
Block a user