{"id":14968551,"url":"https://github.com/valicm/drupal-update","last_synced_at":"2025-07-02T01:36:44.030Z","repository":{"id":204352200,"uuid":"711637087","full_name":"valicm/drupal-update","owner":"valicm","description":"Bash script for updating Drupal core and/or contributed modules with Composer. It can be used as a GitHub action or as a standalone script/integrated into other CI tools.","archived":false,"fork":false,"pushed_at":"2023-11-01T22:45:01.000Z","size":28,"stargazers_count":7,"open_issues_count":3,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-27T20:43:27.242Z","etag":null,"topics":["composer","dependency-manager","drupal","drupal-10","drupal-project","drupal-update","drupal-upgrade","drupal10"],"latest_commit_sha":null,"homepage":"https://vallic.com","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/valicm.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-10-29T21:24:34.000Z","updated_at":"2025-01-27T20:55:49.000Z","dependencies_parsed_at":null,"dependency_job_id":"d137df6c-ff69-42b6-9638-ee9f34a80813","html_url":"https://github.com/valicm/drupal-update","commit_stats":null,"previous_names":["valicm/drupdate","valicm/drupal-update"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/valicm/drupal-update","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/valicm%2Fdrupal-update","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/valicm%2Fdrupal-update/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/valicm%2Fdrupal-update/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/valicm%2Fdrupal-update/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/valicm","download_url":"https://codeload.github.com/valicm/drupal-update/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/valicm%2Fdrupal-update/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263061069,"owners_count":23407597,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["composer","dependency-manager","drupal","drupal-10","drupal-project","drupal-update","drupal-upgrade","drupal10"],"created_at":"2024-09-24T13:40:06.363Z","updated_at":"2025-07-02T01:36:44.009Z","avatar_url":"https://github.com/valicm.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Description\nBash script for updating Drupal core and/or contributed modules with Composer. \nIt can be used as a GitHub action or as a standalone script/integrated into other CI tools.\n\n## Features\n* perform minor or major updates to Drupal core / contributed modules\n* options to exclude modules from check and/or enable Drupal core checks\n* outputs Markdown table of changes as a file or environment variable\n* highlight failed patches\n* can be used as a GitHub action\n* can be used as a standalone script.\n\n## Notes\n* supported update type modes are `semver-safe-update` and `all`. `All` represents full upgrade between major core versions.\n* Semver necessarily does not mean minor versions only (etc 2.1.0, 2.1.2). \n* If you requested package as `^11.0`, any release as `^11.5` is considered by this script as `minor`.\n* The provided patch failures could be in some scenarios false-positive.\n* This tool is not providing a one click upgrade - review release notes for each module, etc.\n\n## GitHub Action Usage\n![](https://vallic.com/sites/default/files/2023-11/github_example.png \"GitHub Drupal Upgrades\")\n\nSee [action.yml](action.yml)\n\n```yaml\n    steps:\n      - uses: actions/checkout@v2\n      - name: Check updates\n        id: updates\n        uses: valicm/drupal-update@v4\n\n```\n\n### GitHub action example to create PR with updates\n* Runs each day once at midnight. \n* Perform minor/security updates\n* Creates automated PR with branch `drupal-automated-updates`\n_(you need to set secret variable named MY_PERSONAL_TOKEN in your repo, so that PR can be created)_\n\n```yaml\nname: Automated Drupal updates\n\non:\n  workflow_dispatch:\n  schedule:\n    - cron: '0 0 * * *'\n\njobs:\n  check-available-updates:\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions/checkout@v2\n        \n      - name: Check updates\n        id: updates\n        uses: valicm/drupal-update@v4\n\n      - name: create pull-request\n        uses: peter-evans/create-pull-request@v5\n        with:\n          token: ${{ secrets.MY_PERSONAL_TOKEN }}\n          commit-message: Automated Drupal updates\n          title: Automated Drupal updates\n          body: ${{ env.DRUPAL_UPDATES_TABLE }}\n          branch: drupal-automated-updates\n          delete-branch: true\n\n```\n\n## Standalone script usage\n![](https://vallic.com/sites/default/files/2023-11/local_example.png \"GitHub Drupal Upgrades\")\n\n| Example                                       | Command                                      |\n|-----------------------------------------------|----------------------------------------------|\n| Run all minor and security updates            | `bash drupal-update.sh`                      |\n| Run any update (minor, security, major)       | `bash drupal-update.sh -t all`               |\n| Run any update, except for Drupal core        | `bash drupal-update.sh -t all -c false`      |\n| Run minor update, excluding some modules      | `bash drupal-update.sh -e pathauto,redirect` |\n| Run all updates, saving summary in upgrade.md | `bash drupal-update.sh -t all -o upgrade.md` |\n\n\nGet all minor updates and output results in summary.md file.\n```bash\ncurl -fsSL https://raw.githubusercontent.com/valicm/drupal-update/main/drupal-update.sh | bash -s -- -o summary.md\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvalicm%2Fdrupal-update","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvalicm%2Fdrupal-update","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvalicm%2Fdrupal-update/lists"}