add yesterdays and todays posts
This commit is contained in:
Vendored
+2
@@ -0,0 +1,2 @@
|
||||
github: gokarna-theme
|
||||
buy_me_a_coffee: avijitgupta
|
||||
+38
@@ -0,0 +1,38 @@
|
||||
name: Update screenshots
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
|
||||
jobs:
|
||||
update-screenshots:
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
pull-requests: write
|
||||
contents: write
|
||||
|
||||
steps:
|
||||
- name: Check out the code
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Run screenshotter container
|
||||
run: docker run -v $(pwd):/app ghcr.io/gokarna-theme/gokarna-hugo/screenshotter
|
||||
|
||||
- name: Create PR
|
||||
run: |
|
||||
if [[ -z $(git status images --porcelain) ]]; then
|
||||
echo "No changes found"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
git config --global user.name 'github-actions[bot]'
|
||||
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
|
||||
git checkout -b auto-update-screenshots
|
||||
git add images/
|
||||
git commit -m 'chore: update screenshots'
|
||||
git push origin auto-update-screenshots -f
|
||||
gh pr create -B main -H auto-update-screenshots --title 'chore: update screenshots' --body 'Created by GitHub action'
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
+22
@@ -0,0 +1,22 @@
|
||||
name: 'Close stale issues and mark inactive PRs'
|
||||
on:
|
||||
schedule:
|
||||
- cron: '0 0 * * 0' # At 00:00 on every Sunday
|
||||
|
||||
jobs:
|
||||
stale:
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
issues: write
|
||||
pull-requests: write
|
||||
contents: read
|
||||
steps:
|
||||
- uses: actions/stale@v9
|
||||
with:
|
||||
stale-issue-message: 'This issue is stale because it has been open for 90 days with no activity. Remove stale label or comment or this will be closed in 30 days.'
|
||||
stale-pr-message: 'This PR is stale because it has been open for 90 days with no activity.'
|
||||
close-issue-message: 'This issue was closed due to inactivity'
|
||||
days-before-stale: 90
|
||||
days-before-close: 30
|
||||
days-before-pr-close: -1
|
||||
exempt-all-assignees: true
|
||||
Reference in New Issue
Block a user