{"id":21969620,"url":"https://github.com/cinderblock/github-action-working-directory","last_synced_at":"2026-05-18T02:36:26.849Z","repository":{"id":42302958,"uuid":"231901969","full_name":"cinderblock/github-action-working-directory","owner":"cinderblock","description":"GitHub Action that clones a repo into a working directory, lets you modify it, and then commits the changes back to the repository at the end of the run","archived":false,"fork":false,"pushed_at":"2023-01-05T04:54:12.000Z","size":6514,"stargazers_count":2,"open_issues_count":14,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-26T11:45:52.299Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/cinderblock.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":"2020-01-05T10:38:50.000Z","updated_at":"2022-08-05T13:30:19.000Z","dependencies_parsed_at":"2023-02-03T10:31:01.328Z","dependency_job_id":null,"html_url":"https://github.com/cinderblock/github-action-working-directory","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":"actions/typescript-action","purl":"pkg:github/cinderblock/github-action-working-directory","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cinderblock%2Fgithub-action-working-directory","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cinderblock%2Fgithub-action-working-directory/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cinderblock%2Fgithub-action-working-directory/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cinderblock%2Fgithub-action-working-directory/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cinderblock","download_url":"https://codeload.github.com/cinderblock/github-action-working-directory/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cinderblock%2Fgithub-action-working-directory/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33162690,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-17T22:39:12.733Z","status":"online","status_checked_at":"2026-05-18T02:00:06.436Z","response_time":71,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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-11-29T14:22:57.347Z","updated_at":"2026-05-18T02:36:26.835Z","avatar_url":"https://github.com/cinderblock.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Working Directory GitHub Action\n\nGitHub Action that clones a repo into a working directory, lets you modify it, and then commits the changes back to the repository.\n\nUse Your GitHub repository (just one branch) as a simple database!\n\n[![cinderblock/github-action-working-directory status](https://github.com/cinderblock/github-action-working-directory/workflows/Main/badge.svg?branch=master)](https://github.com/cinderblock/github-action-working-directory/actions?query=branch%3Amaster)\n\n## How It Works\n\nGitHub Actions `action.yml` has an under-documented feature of `post` runs.\nThis is run at the end of all other steps automatically.\nWe can use that post step to commit any changes back to the original repo that we checkout.\n\n## Usage\n\nIn your GitHub Actions, add a config like this:\n\n```yml\njobs:\n  self-test-and-generate-stats:\n    runs-on: ubuntu-latest # Anything should work\n    steps:\n      - name: Checkout Working Directory\n        uses: cinderblock/github-action-working-directory@v1\n        env:\n          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}\n        with:\n          repo: '' # Current\n          branch: working-dir/${{ github.ref }}\n          working-directory: working-dir\n          commit-message: GitHub Actions\n          commit-name: GitHub Actions\n          commit-email: actions@github.com\n          commit-unchanged: ''\n\n      # Make whatever changes you like\n      - run: date \u003e\u003e run.log\n        working-directory: working-dir\n```\n\nMultiple concurrent working directories are supported.\n\nFor an example, look for `# Test with self` in [`main.yml` workflow](.github/workflows/main.yml#L167-L176) file.\nWe use our own action to store historical data for Allure 2.\n\n## Test Reports\n\n### Allure 2 Test Report\n\n_Includes historical trends because of this action!_\n[![Allure 2 Report](https://cinderblock.github.io/github-action-working-directory/allure-report.png)](https://cinderblock.github.io/github-action-working-directory/allure-report)\n\n### Jest-stare Test Report\n\n[![jest-stare test report page](https://cinderblock.github.io/github-action-working-directory/jest-stare.png)](https://cinderblock.github.io/github-action-working-directory/jest-stare)\n\n### Jest-html-reporters Test Report\n\n[![jest-html-reporters test report page](https://cinderblock.github.io/github-action-working-directory/jest-html-reporters.png)](https://cinderblock.github.io/github-action-working-directory/jest-html-reporters)\n\n### Lcov Coverage Report\n\n[![lcov coverage  page](https://cinderblock.github.io/github-action-working-directory/coverage/lcov-report.png)](https://cinderblock.github.io/github-action-working-directory/coverage/lcov-report)\n\n## Development\n\nSetup everything.\nWe use `npm`.\n\n```bash\nnpm run all\n```\n\nRun the tests :heavy_check_mark:\n\n```bash\nnpm test\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcinderblock%2Fgithub-action-working-directory","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcinderblock%2Fgithub-action-working-directory","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcinderblock%2Fgithub-action-working-directory/lists"}