Skip to content

Commit 985a737

Browse files
Updated daily-deploy.yml steps
* Changed worktree from output-cloudgov to code-json-generator * Added code.json from output-cloudgov branch * Updated Deploy app step with code.json file * Updated daily-deploy.yml schedule
1 parent 61de2a6 commit 985a737

File tree

1 file changed

+25
-5
lines changed

1 file changed

+25
-5
lines changed

.github/workflows/daily-deploy.yml

+25-5
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ name: "Daily code.json deployment to cloud.gov"
22

33
on:
44
schedule:
5-
# Runs at the 30th minute of the 18th hour, each day of the month, for all months, and all days of the week.
6-
- cron: '30 18 * * *'
5+
# Run at 6:15 pm UTC (2:15 pm EST) every day
6+
- cron: '05 18 * * *'
77

88
jobs:
99
build:
@@ -36,14 +36,34 @@ jobs:
3636
run: |
3737
git config user.name github-actions
3838
git config user.email [email protected]
39+
git fetch --depth=1 origin output-cloudgov
40+
git worktree add -b output-cloudgov ../output-cloudgov origin/output-cloudgov
41+
mv code.json ../output-cloudgov/code.json
42+
cd ../output-cloudgov/
3943
git add .
4044
git commit -m "Automated workflow from GitHub Actions"
41-
git push
45+
git push origin output-cloudgov
46+
pwd
47+
cd ..
48+
pwd
49+
cd code-json-generator
50+
ls
51+
git checkout output-cloudgov -- code.json
52+
ls
53+
54+
55+
4256
4357
- name: Make the cloudgov-deploy script executable
4458
if: ${{ success() }}
45-
run: chmod +x ./bin/deploy-cloudgov
59+
run: |
60+
chmod +x ./bin/deploy-cloudgov
4661
4762
- name: Deploy the app to cloud.gov
4863
if: ${{ success() }}
49-
run: ./bin/deploy-cloudgov && echo "Deploy"
64+
run: |
65+
pwd
66+
ls
67+
git checkout output-cloudgov -- code.json
68+
ls
69+
./bin/deploy-cloudgov && echo "Deploy"

0 commit comments

Comments
 (0)