Skip to content

Commit

Permalink
Deploy from both CI-CD and CI-CD-renv, ensuring no concurrent jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
riccardoporreca committed Jan 22, 2024
1 parent 4dfd3f4 commit 1f3d445
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/ci-cd-renv.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@ on:
schedule:
- cron: '0 0 1 * *'

# Avoid concurrent deployments from both workflows by running one at a time
# (specific for ShinyCICD maintenance)
concurrency:
group: shinyapps

jobs:
CI-CD:
runs-on: ${{ matrix.config.os }}
Expand Down Expand Up @@ -76,7 +81,7 @@ jobs:

- name: Deploy to shinyapps.io
# Continuous deployment only for pushes to the main / master branch
if: false && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master')
if: github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master'
env:
SHINYAPPS_ACCOUNT: ${{ secrets.SHINYAPPS_ACCOUNT }}
SHINYAPPS_TOKEN: ${{ secrets.SHINYAPPS_TOKEN }}
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@ on:
schedule:
- cron: '0 0 1 * *'

# Avoid concurrent deployments from both workflows by running one at a time
# (specific for ShinyCICD maintenance)
concurrency:
group: shinyapps

jobs:
CI-CD:
runs-on: ${{ matrix.config.os }}
Expand Down

0 comments on commit 1f3d445

Please sign in to comment.