Skip to content

Commit 6d63fb8

Browse files
authored
run git pull before other operations
1 parent da85b8f commit 6d63fb8

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

.github/workflows/archive-in-portico.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ name: Archive in Portico
1515

1616
on:
1717
schedule:
18-
- cron: "15 1 * * 6"
18+
- cron: "30 1 * * *"
1919
workflow_dispatch:
2020
inputs:
2121
datestamp:
@@ -178,6 +178,7 @@ jobs:
178178
run: |
179179
git config user.name "github-actions[bot]"
180180
git config user.email "github-actions[bot]@users.noreply.github.com"
181+
git pull origin ${{ github.ref }}
181182
git add .github/state/archive-in-portico/last-failures .github/state/archive-in-portico/last-run-date
182183
git commit -m "🤖 update archive-in-portico state files"
183184
git push origin HEAD:${{ github.ref }}

.github/workflows/upload-to-pmc.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,7 @@ jobs:
163163
run: |
164164
git config user.name "github-actions[bot]"
165165
git config user.email "github-actions[bot]@users.noreply.github.com"
166+
git pull origin ${{ github.ref }}
166167
git add .github/state/upload-to-pmc/last-run-date
167168
git commit -m "🤖 update upload-to-pmc state files"
168169
git push origin HEAD:${{ github.ref }}

0 commit comments

Comments
 (0)