8000 Automate data updates and deployment via GitHub Actions by Copilot · Pull Request #5 · jimbrig/jimsghstars · GitHub
[go: up one dir, main page]

Skip to content

Automate data updates and deployment via GitHub Actions - #5

Draft
jimbrig with Copilot wants to merge 7 commits into
mainfrom
copilot/automate-deployment-process
Draft

jimbrig with Copilot wants to merge 7 commits into
mainfrom
copilot/automate-deployment-process

Conversation

Copilot AI commented Nov 16, 2025 •
Copy link
Copy Markdown

The repository required manual intervention to update GitHub stars data and redeploy the Shiny app. This PR implements full automation via GitHub Actions.

Changes

Workflow Automation

  • New workflow .github/workflows/update-and-deploy.yml consolidates data updates and deployment
    • Scheduled daily at 08:00 UTC
    • Manual trigger via workflow_dispatch
    • Triggered on pushes affecting app files
    • Commits use [skip ci] to prevent loops
    • Deployment conditional on credentials being configured

Security

  • Explicit minimal permissions (contents: write, actions: read)
  • Secrets managed via GitHub repository secrets
  • Enhanced .gitignore to prevent credential leaks
  • Passes CodeQL security analysis

Documentation

  • QUICKSTART.md - Setup instructions
  • AUTOMATION.md - Technical reference
  • app/README.md - App development guide
  • scripts/setup_deployment.R - Interactive credential configuration helper

Deprecated

  • Old workflows (update.yml, deploy.yml) disabled but retained for reference

Workflow Behavior

Daily at 08:00 UTC:
  1. Fetch starred repos via GitHub API
  2. Update data files in /data and /app/data
  3. Commit changes (if any)
  4. Deploy to shinyapps.io (if SHINY_* secrets configured)
  5. Generate deployment summary

Setup

Add these repository secrets for deployment (optional):

  • SHINY_ACCOUNT
  • SHINY_TOKEN
  • SHINY_SECRET

Without secrets, workflow performs data updates only.

Original prompt

I would like this app to be more automated via GitHub actions or webhooks (if available for stars) in that it automatically updates the data and redeploys to shinyapps.io or alternatively could simply use GitHub pages and a quarto site or shinylive


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Copilot AI and others added 6 commits November 16, 2025 16:29
Co-authored-by: jimbrig <32652297+jimbrig@users.noreply.github.com>
Co-authored-by: jimbrig <32652297+jimbrig@users.noreply.github.com>
Co-authored-by: jimbrig <32652297+jimbrig@users.noreply.github.com>
Co-authored-by: jimbrig <32652297+jimbrig@users.noreply.github.com>
Co-authored-by: jimbrig <32652297+jimbrig@users.noreply.github.com>
Co-authored-by: jimbrig <32652297+jimbrig@users.noreply.github.com>
Copilot AI changed the title [WIP] Add automation for app deployment and updates Automate data updates and deployment via GitHub Actions Nov 16, 2025
Copilot AI requested a review from jimbrig November 16, 2025 16:41

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

0