{"id":17383654,"url":"https://github.com/daikikatsuragawa/clasp-action","last_synced_at":"2025-04-15T10:03:46.389Z","repository":{"id":47063112,"uuid":"357580436","full_name":"daikikatsuragawa/clasp-action","owner":"daikikatsuragawa","description":"This action uses clasp to push or deploy to Google Apps Script.","archived":false,"fork":false,"pushed_at":"2023-07-28T01:19:00.000Z","size":20,"stargazers_count":34,"open_issues_count":5,"forks_count":16,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-04-15T10:03:26.394Z","etag":null,"topics":["actions","apps-script","ci","clasp","docker","gas","github-action","github-actions-docker","google-apps-script","shell","shell-script"],"latest_commit_sha":null,"homepage":"https://github.com/marketplace/actions/clasp-action","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/daikikatsuragawa.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-13T14:21:31.000Z","updated_at":"2025-03-27T13:09:17.000Z","dependencies_parsed_at":"2024-06-19T05:35:19.904Z","dependency_job_id":null,"html_url":"https://github.com/daikikatsuragawa/clasp-action","commit_stats":{"total_commits":16,"total_committers":5,"mean_commits":3.2,"dds":0.25,"last_synced_commit":"dcf503f6c8de11e7c2649293aca612a3ca8582d7"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daikikatsuragawa%2Fclasp-action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daikikatsuragawa%2Fclasp-action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daikikatsuragawa%2Fclasp-action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daikikatsuragawa%2Fclasp-action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/daikikatsuragawa","download_url":"https://codeload.github.com/daikikatsuragawa/clasp-action/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249048725,"owners_count":21204306,"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","apps-script","ci","clasp","docker","gas","github-action","github-actions-docker","google-apps-script","shell","shell-script"],"created_at":"2024-10-16T07:43:23.679Z","updated_at":"2025-04-15T10:03:46.371Z","avatar_url":"https://github.com/daikikatsuragawa.png","language":"Shell","funding_links":[],"categories":["Shell"],"sub_categories":[],"readme":"# Clasp Action\n\nThis action uses [clasp](https://github.com/google/clasp) to push or deploy to [Google Apps Script](https://developers.google.com/apps-script/). This action is running `clasp push -f` regardless of whether you select `push` or `deploy` as the command. This will force the remote manifest to be overwritten.\n\n## Inputs\n\n### `accessToken`\n\n**Required** `access_token` written in `.clasprc.json`.\n\n### `idToken`\n\n**Required** `id_token` written in `.clasprc.json`.\n\n### `refreshToken`\n\n**Required** `refresh_token` written in `.clasprc.json`.\n\n### `clientId`\n\n**Required** `clientId` written in `.clasprc.json`.\n\n### `clientSecret`\n\n**Required** `clientSecret` written in `.clasprc.json`.\n\n### `scriptId`\n\n**Required** `scriptId` written in `.clasp.json`.\n\n### `rootDir`\n\nDirectory where scripts are stored.\n\n### `command`\n\n**Required** Command to execute(`push` or `deploy`).\n\nIf `deploy` is selected, this action is running `clasp push -f` just before.\n\nDeploy works for max. 20 deployments due to Gas limit on active deployments and complexity to determine which deployment should be deleted.\nWorkaround : Set deployId.\n\n### `description`\n\nDescription of the deployment.\n\n### `deployId`\n\nDeploy ID that will be updated with this push.\n\n## Example usage\n\n### Case to push\n\n```yaml\n- uses: daikikatsuragawa/clasp-action@v1.1.0\n  with:\n    accessToken: ${{ secrets.ACCESS_TOKEN }}\n    idToken: ${{ secrets.ID_TOKEN }}\n    refreshToken: ${{ secrets.REFRESH_TOKEN }}\n    clientId: ${{ secrets.CLIENT_ID }}\n    clientSecret: ${{ secrets.CLIENT_SECRET }}\n    scriptId: ${{ secrets.SCRIPT_ID }}\n    command: 'push'\n```\n\n### Case to deploy\n\n```yaml\n- uses: daikikatsuragawa/clasp-action@v1.1.0\n  with:\n    accessToken: ${{ secrets.ACCESS_TOKEN }}\n    idToken: ${{ secrets.ID_TOKEN }}\n    refreshToken: ${{ secrets.REFRESH_TOKEN }}\n    clientId: ${{ secrets.CLIENT_ID }}\n    clientSecret: ${{ secrets.CLIENT_SECRET }}\n    scriptId: ${{ secrets.SCRIPT_ID }}\n    command: 'deploy'\n```\n\n### Case to deploy with description\n\n```yaml\n- uses: daikikatsuragawa/clasp-action@v1.1.0\n  with:\n    accessToken: ${{ secrets.ACCESS_TOKEN }}\n    idToken: ${{ secrets.ID_TOKEN }}\n    refreshToken: ${{ secrets.REFRESH_TOKEN }}\n    clientId: ${{ secrets.CLIENT_ID }}\n    clientSecret: ${{ secrets.CLIENT_SECRET }}\n    scriptId: ${{ secrets.SCRIPT_ID }}\n    command: 'deploy'\n    description: 'Sample description'\n```\n\n### Case to specify the directory where scripts are stored\n\n```yaml\n- uses: daikikatsuragawa/clasp-action@v1.1.0\n  with:\n    accessToken: ${{ secrets.ACCESS_TOKEN }}\n    idToken: ${{ secrets.ID_TOKEN }}\n    refreshToken: ${{ secrets.REFRESH_TOKEN }}\n    clientId: ${{ secrets.CLIENT_ID }}     \n    clientSecret: ${{ secrets.CLIENT_SECRET }}\n    scriptId: ${{ secrets.SCRIPT_ID }}\n    rootDir: 'src'\n    command: 'push'\n```\n\n### Case to update a specific deploy\n\n```yaml\n- uses: daikikatsuragawa/clasp-action@v1.1.0\n  with:\n    accessToken: ${{ secrets.ACCESS_TOKEN }}\n    idToken: ${{ secrets.ID_TOKEN }}\n    refreshToken: ${{ secrets.REFRESH_TOKEN }}\n    clientId: ${{ secrets.CLIENT_ID }}\n    clientSecret: ${{ secrets.CLIENT_SECRET }}\n    scriptId: ${{ secrets.SCRIPT_ID }}\n    command: 'deploy'\n    deployId: ${{ secrets.DEPLOY_ID }}\n```\n\n## License summary\n\nThis code is made available under the MIT license.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdaikikatsuragawa%2Fclasp-action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdaikikatsuragawa%2Fclasp-action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdaikikatsuragawa%2Fclasp-action/lists"}