{"id":28191693,"url":"https://github.com/devuri/action-rd-ssh-update","last_synced_at":"2025-05-16T11:10:58.366Z","repository":{"id":284246901,"uuid":"826951032","full_name":"devuri/action-rd-ssh-update","owner":"devuri","description":"Back up composer.lock file and update dependencies with logging.","archived":false,"fork":false,"pushed_at":"2025-03-24T22:42:02.000Z","size":61,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-24T23:26:25.466Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/devuri.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-07-10T17:53:10.000Z","updated_at":"2025-03-24T22:41:54.000Z","dependencies_parsed_at":"2025-03-24T23:36:52.416Z","dependency_job_id":null,"html_url":"https://github.com/devuri/action-rd-ssh-update","commit_stats":null,"previous_names":["devuri/action-rd-ssh-update"],"tags_count":3,"template":false,"template_full_name":"devuri/dot-access","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devuri%2Faction-rd-ssh-update","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devuri%2Faction-rd-ssh-update/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devuri%2Faction-rd-ssh-update/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devuri%2Faction-rd-ssh-update/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/devuri","download_url":"https://codeload.github.com/devuri/action-rd-ssh-update/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254518401,"owners_count":22084376,"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":[],"created_at":"2025-05-16T11:10:35.409Z","updated_at":"2025-05-16T11:10:58.361Z","avatar_url":"https://github.com/devuri.png","language":"Shell","readme":"# Rd SSH Updates\n\nUpdate Composer dependencies over SSH with logging and send a notification to Slack.\n\n## Description\n\nThis GitHub Action allows you to update Composer dependencies on a remote server via SSH. It includes logging and notifies a Slack channel upon completion.\n\n## Inputs\n\n| Input             | Description                          | Required | Default  |\n|-------------------|--------------------------------------|----------|----------|\n| `web_app_path`    | Path to the web application.         | Yes      | N/A      |\n| `ssh_host`        | SSH host.                            | Yes      | N/A      |\n| `ssh_username`    | SSH username.                        | Yes      | N/A      |\n| `ssh_private_key` | SSH private key.                     | Yes      | N/A      |\n| `ssh_port`        | SSH port.                            | Yes      | N/A      |\n| `slack_webhook`   | Slack Webhook URL.                   | Yes      | N/A      |\n| `slack_channel`   | The Slack channel for updates.       | No       | `general`|\n\n## Usage\n\nTo use this action in your GitHub workflow, include a step that references this action and provides the necessary inputs.\n\n### Example Workflow\n\n```yaml\nname: Update Website\n\non:\n  pull_request:\n    types:\n      - closed\n  workflow_dispatch:\n  schedule:\n    - cron: '0 0 * * 0' # Runs at 00:00 UTC every Sunday\n\nenv:\n  WEB_APP_PATH: \"/srv/users/myapp/apps/myapp\"\n\njobs:\n  update:\n    name: \"Update Web Application\"\n    runs-on: ubuntu-latest\n\n    steps:\n      - name: Checkout repository\n        uses: actions/checkout@v2\n\n      - name: Update and Backup Dependencies\n        uses: devuri/action-rd-ssh-update@main\n        with:\n          web_app_path: ${{ env.WEB_APP_PATH }}\n          ssh_host: ${{ secrets.SSH_HOST }}\n          ssh_username: ${{ secrets.SSH_USERNAME }}\n          ssh_private_key: ${{ secrets.SSH_PRIVATE_KEY }}\n          ssh_port: ${{ secrets.SSH_PORT }}\n          slack_webhook: ${{ secrets.SLACK_WEBHOOK }}\n          slack_channel: \"general\"\n```\n\n## Secrets\n\nEnsure the following secrets are added to your repository settings:\n\n- `SSH_HOST`\n- `SSH_USERNAME`\n- `SSH_PRIVATE_KEY`\n- `SSH_PORT`\n- `SLACK_WEBHOOK`\n\nThis action will perform the following steps:\n\n1. Connect to the remote server via SSH.\n2. Backup the `composer.lock` file.\n3. Run `composer update` to update dependencies.\n4. Log the update process.\n5. Notify the specified Slack channel of the update status.\n\n## License\n\nThe scripts and documentation in this project are released under the [MIT License](LICENSE)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevuri%2Faction-rd-ssh-update","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevuri%2Faction-rd-ssh-update","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevuri%2Faction-rd-ssh-update/lists"}