{"id":17918282,"url":"https://github.com/link-/simple-action","last_synced_at":"2026-02-21T06:13:35.966Z","repository":{"id":148981652,"uuid":"354645631","full_name":"Link-/simple-action","owner":"Link-","description":"A very simple GitHub action implementing the command design pattern","archived":false,"fork":false,"pushed_at":"2022-05-18T14:45:27.000Z","size":12727,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-20T11:03:13.786Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/Link-.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-04-04T21:00:10.000Z","updated_at":"2025-08-09T20:25:02.000Z","dependencies_parsed_at":null,"dependency_job_id":"fbe1748f-cf93-4b41-b913-a37968c1229c","html_url":"https://github.com/Link-/simple-action","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Link-/simple-action","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Link-%2Fsimple-action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Link-%2Fsimple-action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Link-%2Fsimple-action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Link-%2Fsimple-action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Link-","download_url":"https://codeload.github.com/Link-/simple-action/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Link-%2Fsimple-action/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29675037,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-21T05:54:28.202Z","status":"ssl_error","status_checked_at":"2026-02-21T05:53:42.585Z","response_time":107,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":"2024-10-28T20:10:37.194Z","updated_at":"2026-02-21T06:13:35.950Z","avatar_url":"https://github.com/Link-.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# simple-action\n\n\u003e A very simple GitHub action implementing the command design pattern\n\n## Context post\n\nThis repository is an example action adopting the design pattern discussed in this blog post: [Adopting the command design pattern for GitHub Actions](https://blog.bassemdy.com/2021/04/05/github/actions/design-patterns/command/best-practices/adopt-command-pattern-for-actions.html)\n\n## Usage\n\n### Workflow setup\n\nIf you introduce changes to the action, **don't forget to build**! The action's entry point is `dist/index.js` not `src/cli.js`. You can trigger a build by running: `npm run build`.\n\n```yaml\nname: Test Workflow\n\non:\n  workflow_dispatch:\n\njobs:\n  FirstJob:\n    \n    runs-on: ubuntu-latest\n    \n    steps:\n      # Because the action is hosted in this same repository and it has not\n      # been published to the marketplace, we have to checkout the repo\n      # so that we can call the local action in the next steps\n      - name: Checkout repository\n        uses: actions/checkout@v2\n\n      # Using the location action we pass the needed parameters and provide\n      # the name of the command to call\n      - name: \"Get Issue Details Command\"\n        id: get_issue_details\n        uses: ./\n        with:\n          command: get_issue_details\n          token: ${{ secrets.GITHUB_TOKEN }}\n          issue-number: 1\n          org: TEST_ORG\n          repo: ${{ github.event.repository.name }}\n\n      # Same as the previous step with different parameters supplied\n      - name: \"Get Comments Command\"\n        id: get_comments\n        uses: ./\n        with:\n          command: get_comments\n          token: ${{ secrets.GITHUB_TOKEN }}\n          issue-number: 5\n\n      # Print output from both steps\n      - name: \"Print results\"\n        run: |\n          echo ${{ steps.get_issue_details.outputs.result }}\n          echo ${{ steps.get_comments.outputs.result }}\n```\n\n## License\n\n- [MIT License](./LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flink-%2Fsimple-action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flink-%2Fsimple-action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flink-%2Fsimple-action/lists"}