Skip to content

Commit

Permalink
github workflow update versions
Browse files Browse the repository at this point in the history
  • Loading branch information
siddharthvp committed Apr 15, 2023
1 parent a55bb98 commit 3b8008c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/restart-services.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ jobs:
update:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: garygrossgarten/github-action-ssh@2b10f41b5a33808f6d24eafd253296766308b7c4
- uses: actions/checkout@v3
- uses: garygrossgarten/github-action-ssh@915e492551885a89131e21d85f2e043c96abff80
with:
command: >-
become sdzerobot bash -c '
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/toolforge-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: garygrossgarten/github-action-ssh@2b10f41b5a33808f6d24eafd253296766308b7c4
- uses: actions/checkout@v3
- uses: garygrossgarten/github-action-ssh@915e492551885a89131e21d85f2e043c96abff80
with:
command: >-
become sdzerobot bash -c '
cd /data/project/sdzerobot/mwn || exit 1;
if [[ "$(git pull | grep -c "Already up to date")" -eq 0 ]]; then
if [[ "$(git pull --ff-only | grep -c "Already up to date")" -eq 0 ]]; then
if [[ "$(git diff --name-only HEAD HEAD@{1} | grep -c package.json)" -gt 0 ]]; then
echo "Running npm install for mwn ...";
npm install || exit 1;
Expand All @@ -31,7 +31,7 @@ jobs:
cd /data/project/sdzerobot/SDZeroBot || exit 1;
echo "Pulling SDZeroBot ...";
git checkout master || exit 1;
git pull || exit 1;
git pull --ff-only || exit 1;
if [[ "$(git diff --name-only HEAD HEAD@{1} | grep -c package.json)" -gt 0 ]]; then
echo "Running npm install for SDZeroBot ...";
npm install || exit 1;
Expand Down

0 comments on commit 3b8008c

Please sign in to comment.