Skip to content

Commit d1a530f

Browse files
Update krishnpakash.yml
Signed-off-by: Phileco <[email protected]>
1 parent be02c12 commit d1a530f

File tree

1 file changed

+26
-40
lines changed

1 file changed

+26
-40
lines changed

.github/workflows/krishnpakash.yml

Lines changed: 26 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,26 @@ name: Deploy Jekyll site to Pages
99
on:
1010
# Runs on pushes targeting the default branch
1111
push:
12-
branches: ["gh-pages"]
12+
branches: ["gh-pages"]
13+
tags: "0 10 * * 2"
1314

14-
# Allows you to run this workflow manually from the Actions tab
15-
workflow_dispatch:
15+
jobs:
16+
reminder:
17+
runs-on: ubuntu-latest
18+
steps:
19+
- run: do-the-thing.sh
20+
- uses: gr2m/set-cron-schedule-action@v2
21+
with:
22+
token: ${{ secrets.PAT_WITH_WORKFLOW_SCOPE }}
23+
cron: |
24+
0 10 * * 2
25+
0 15 * * 4
26+
# optional: set workflow id or file name
27+
workflow: my-workflow.yml
28+
# optional: Defaults to "ci($WORKFLOW_NAME): update cron schedule: $CRON_EXPRESSIONS".
29+
# $WORKFLOW_NAME and $CRON_EXPRESSIONS will be replaced.
30+
message: "update cron for next reminder to do the thing"
31+
# Allows you to run this workflow manually from the Actions tab workflow_dispatch:
1632

1733
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
1834
permissions:
@@ -23,46 +39,16 @@ permissions:
2339
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
2440
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
2541
concurrency:
26-
group: "pages"
42+
group: "pages"
2743
cancel-in-progress: false
2844

29-
jobs:
30-
# Build job
31-
build:
32-
runs-on: ubuntu-latest
33-
steps:
34-
- name: Checkout
35-
uses: actions/checkout@v4
36-
- name: Setup Ruby
37-
# https://github.com/ruby/setup-ruby/releases/tag/v1.207.0
38-
uses: ruby/setup-ruby@4a9ddd6f338a97768b8006bf671dfbad383215f4
39-
with:
40-
ruby-version: '3.1' # Not needed with a .ruby-version file
41-
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
42-
cache-version: 0 # Increment this number if you need to re-download cached gems
43-
- name: Setup Pages
44-
id: pages
45-
uses: actions/configure-pages@v5
46-
- name: Build with Jekyll
47-
# Outputs to the './_site' directory by default
48-
run: bundle exec jekyll build --baseurl "${{ steps.pages.outputs.base_path }}"
49-
env:
50-
JEKYLL_ENV: production
51-
- name: Upload artifact
52-
# Automatically uploads an artifact from the './_site' directory by default
53-
uses: actions/upload-pages-artifact@v3
45+
jobs
46+
# Build job runs-on: ubuntu-latest name: Checkout uses: actions/checkout@v4 name: Setup Ruby
47+
# https://github.com/ruby/setup-ruby/releases/tag/v1.207.0 uses: ruby/setup-ruby@4a9ddd6f338a97768b8006bf671dfbad383215f4 with: ruby-version: '3.1' # Not needed with a .ruby-version file bundler-cache: true # runs 'bundle install' and caches installed gems automatically cache-version: 0 # Increment this number if you need to re-download cached gems- name: Setup Pages id: pages uses: actions/configure-pages@v - name: Build with Jekyll
48+
# Outputs to the './_site' directory by default run: bundle exec jekyll build --baseurl "${{ steps.pages.outputs.base_path }}" env: JEKYLL_ENV: production- name: Upload artifact
49+
# Automatically uploads an artifact from the './_site' directory by default uses: actions/upload-pages-artifact@v3
5450

55-
# Deployment job
56-
deploy:
57-
environment:
58-
name: github-pages
59-
url: ${{ steps.deployment.outputs.page_url }}
60-
runs-on: ubuntu-latest
61-
needs: build
62-
steps:
63-
- name: Deploy to GitHub Pages
64-
id: deployment
65-
uses: actions/deploy-pages@v4
51+
# Deployment job deploy: environment: name: github-pages url: ${{ steps.deployment.outputs.page_url }} runs-on: ubuntu-latest needs: build steps:- name: Deploy to GitHub Pages id: deployment uses: actions/deploy-pages@v4
6652
# Basic `dependabot.yml` file with
6753
# minimum configuration for three package managers version: 2 updates:
6854
# Enable version updates for npm- package-ecosystem: "npm"

0 commit comments

Comments
 (0)