{"id":21451169,"url":"https://github.com/lenra-io/create-or-update-pr-action","last_synced_at":"2026-01-03T07:44:38.823Z","repository":{"id":43177249,"uuid":"431871940","full_name":"lenra-io/create-or-update-pr-action","owner":"lenra-io","description":"A simple but powerful GitHub Action to link workflows and manage dependencies between projects. #actionshackathon21","archived":false,"fork":false,"pushed_at":"2022-07-04T09:58:57.000Z","size":26,"stargazers_count":2,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-23T12:25:29.571Z","etag":null,"topics":["actions","actionshackathon21","ci-cd","continuous-integration","dependency-manager","github-actions","learning-by-doing","workflow"],"latest_commit_sha":null,"homepage":"","language":null,"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/lenra-io.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}},"created_at":"2021-11-25T14:20:58.000Z","updated_at":"2022-03-18T08:51:47.000Z","dependencies_parsed_at":"2022-09-11T10:04:08.059Z","dependency_job_id":null,"html_url":"https://github.com/lenra-io/create-or-update-pr-action","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lenra-io%2Fcreate-or-update-pr-action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lenra-io%2Fcreate-or-update-pr-action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lenra-io%2Fcreate-or-update-pr-action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lenra-io%2Fcreate-or-update-pr-action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lenra-io","download_url":"https://codeload.github.com/lenra-io/create-or-update-pr-action/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243963779,"owners_count":20375676,"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":["actions","actionshackathon21","ci-cd","continuous-integration","dependency-manager","github-actions","learning-by-doing","workflow"],"created_at":"2024-11-23T04:18:29.398Z","updated_at":"2026-01-03T07:44:38.778Z","avatar_url":"https://github.com/lenra-io.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Create or update PR Action\n\nA simple but powerful GitHub Action to link workflows and manage dependencies between projects.\n\n\n## Usage: \n\nTo learn accurately how to use it, you must see the [guide here](/examples)\n\n## Quick Example:\n\n```yaml\n      # Call `Create or update PR` GitHub action\n      - name: create_pr\n        uses: lenra-io/create-or-update-pr-action@main\n        with:\n          # The name of the PR to be created.\n          name: 'Update dependencies'\n          # The token used to create the PR. \n          # I didn't use the `secrets.GITHUB_TOKEN` here because this token can't trigger workflow event if we push something or create a PR.\n          token: ${{ secrets.WORKFLOW_GITHUB_TOKEN }}\n          # The message to comment on PR after creation (Can be Markdown)\n          message: |\n            # Upgrade ${{ github.event.inputs.origin }} to ${{ github.event.inputs.version }}\n          # Write a little script called just before the PR creation or update.\n          # This example will upgrade the version inside of the pubspec.yaml and publish it in a new PR\n          script: |\n            # Update the requested dependency version in the pubspec.yaml file\n            yq eval \".dependencies.${{ github.event.inputs.origin }}.git.ref = \\\"${{  github.event.inputs.version }}\\\"\" -i pubspec.yaml\n            \n            # Commit the file to include it to the PR. Don't use `git push`, it's automatic so you don't have to do it yourself.\n            git add pubspec.yaml\n            git commit -m \"build(deps-dev): Upgrade ${{ github.event.inputs.origin }} to ${{ github.event.inputs.version }}\"\n```\n\nIf you need more informations, you can look at this [dev.to post](https://dev.to/lenradevelopers/lenras-automatic-management-of-dependencies-i28)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flenra-io%2Fcreate-or-update-pr-action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flenra-io%2Fcreate-or-update-pr-action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flenra-io%2Fcreate-or-update-pr-action/lists"}