File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change 44 push :
55 branches :
66 - " 2024"
7-
87 workflow_dispatch :
98
109jobs :
@@ -23,12 +22,17 @@ jobs:
2322 - name : Clone the blog repo (shallow clone)
2423 run : git clone --depth 1 https://github.com/sadmanca/blog blog-repo
2524
25+ - name : Checkout pey-2024-test branch in blog repo
26+ run : |
27+ cd blog-repo
28+ git checkout -B pey-2024-test
29+
2630 - name : Set up Python
2731 uses : actions/setup-python@v4
2832 with :
2933 python-version : ' 3.x'
3034
31- - name : Cache dependencies
35+ - name : Cache pip dependencies
3236 uses : actions/cache@v3
3337 with :
3438 path : ~/.cache/pip
@@ -47,16 +51,12 @@ jobs:
4751 git config --global user.name "github-actions[bot]"
4852 git config --global user.email "github-actions[bot]@users.noreply.github.com"
4953
50- - name : Create a new branch if it doesn't exist
51- run : |
52- cd blog-repo
53- git checkout -B pey-2024-test
54-
55- - name : Commit the new JSON file
54+ - name : Commit the new JSON file with timestamp
5655 run : |
5756 cd blog-repo
57+ timestamp=$(date)
5858 git add data/PEYJobPosting2024.json
59- git commit -m "Add updated PEY job postings data"
59+ git commit -m "Add updated PEY job postings data - $timestamp "
6060
6161 - name : Set up authentication for pushing changes
6262 run : |
You can’t perform that action at this time.
0 commit comments