1
0
mirror of https://github.com/funkypenguin/geek-cookbook/ synced 2025-12-13 09:46:23 +00:00

disable some workflows which need attention

Signed-off-by: David Young <davidy@funkypenguin.co.nz>
This commit is contained in:
David Young
2022-08-23 23:24:03 +12:00
parent 1e31251c63
commit 58147a4b0b
5 changed files with 0 additions and 48 deletions

View File

@@ -1,28 +0,0 @@
name: Check for broken links
on:
repository_dispatch:
workflow_dispatch:
schedule:
- cron: "00 18 * * *"
jobs:
linkChecker:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Link Checker
id: lychee
uses: lycheeverse/lychee-action@v1.5.1
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
- name: Create Issue From File
if: steps.lychee.outputs.exit_code != 0
uses: peter-evans/create-issue-from-file@v4
with:
title: Link Checker Report
content-filepath: ./lychee/out.md
labels: report, automated issue

View File

@@ -1,27 +0,0 @@
name: Check for broken links
on:
repository_dispatch:
workflow_dispatch:
# schedule:
# - cron: "00 18 * * *"
jobs:
linkChecker:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Link Checker
uses: lycheeverse/lychee-action@v1.0.9
with:
args: --verbose --no-progress **/*.md **/*.html
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
- name: Create Issue From File
uses: peter-evans/create-issue-from-file@v3
with:
title: Link Checker Report
content-filepath: ./lychee/out.md
labels: report, automated issue

View File

@@ -1,31 +0,0 @@
name: Notify Discord of new recipe requests
on:
issues:
types: [opened]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
jobs:
assign-recipes-to-project:
runs-on: ubuntu-latest
name: notify Discord of new recipe request
steps:
- name: Discord notification
if: |
contains(github.event.issue.labels.*.name, 'recipe/request')
env:
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
DISCORD_EMBEDS: |
{
"description": "{{ EVENT_PAYLOAD.title }}",
"url": "{{ EVENT_PAYLOAD.url }}",
"color": 7418285,
"author": {
"name": "${{github.sender.login}}",
"url": "${{github.sender.html_url}}",
"icon_url": "${{github.sender.avatar_url}}"
}
uses: Ilshidur/action-discord@0.3.0
with:
args: The [Geek's Cookbook](https://geek-cookbook.funkypenguin.co.nz) has a new recipe request!

View File

@@ -1,48 +0,0 @@
name: Update leanpub branches
on:
push:
branches:
- dev
paths:
- 'manuscript/*.md'
- 'manuscript/**/*.md'
- '.github/workflows/*'
- 'scripts/*'
jobs:
update-leanpub:
name: update-leanpub
runs-on: ubuntu-latest
steps:
- name: Checkout charts repo
uses: actions/checkout@v2
- name: Checkout latest leanpub-preview branch
uses: actions/checkout@v2
with:
repository: ${{ env.GITHUB_PAGES_REPO }}
ref: leanpub-preview
path: leanpub-preview
- name: Replace contents of leanpub-preview branch
run: |
rm -rf leanpub-preview/manuscript
rm -rf leanpub-preview/scripts
cp -rf manuscript leanpub-preview/
cp -rf scripts leanpub-preview/
cd leanpub-preview
./scripts/markdown-to-markua.sh
git config --local --unset-all "http.https://github.com/.extraheader"
git config --global user.email "autopenguin@funkypenguin.co.nz"
git config --global user.name "AutoPenguin"
git add .
git commit -m 'Update for leanpub preview'
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
directory: leanpub-preview
branch: leanpub-preview

View File

@@ -1,15 +0,0 @@
name: "Close stale issues"
on:
schedule:
- cron: "30 1 * * *"
jobs:
stale:
runs-on: ubuntu-latest
steps:
- uses: actions/stale@v3
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
stale-issue-message: 'This issue has gone mouldy, because it has been open 90 days with no activity. Remove stale label or comment or this will be closed in 14 days'
days-before-stale: 90
days-before-close: 14