{"id":51116607,"url":"https://github.com/oracle-devrel/action-release-zip-maker","last_synced_at":"2026-06-24T22:30:42.013Z","repository":{"id":43166849,"uuid":"392129201","full_name":"oracle-devrel/action-release-zip-maker","owner":"oracle-devrel","description":"Make ZIP files for releases the easy way!","archived":false,"fork":false,"pushed_at":"2025-01-21T20:07:27.000Z","size":24,"stargazers_count":2,"open_issues_count":2,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-04-21T13:39:04.560Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"upl-1.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/oracle-devrel.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-08-02T23:58:41.000Z","updated_at":"2025-01-21T20:07:31.000Z","dependencies_parsed_at":"2024-07-23T21:52:05.846Z","dependency_job_id":null,"html_url":"https://github.com/oracle-devrel/action-release-zip-maker","commit_stats":{"total_commits":16,"total_committers":2,"mean_commits":8.0,"dds":0.1875,"last_synced_commit":"48efb267ad067543c986e30f8c2ef9d45765961c"},"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/oracle-devrel/action-release-zip-maker","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oracle-devrel%2Faction-release-zip-maker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oracle-devrel%2Faction-release-zip-maker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oracle-devrel%2Faction-release-zip-maker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oracle-devrel%2Faction-release-zip-maker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/oracle-devrel","download_url":"https://codeload.github.com/oracle-devrel/action-release-zip-maker/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oracle-devrel%2Faction-release-zip-maker/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34752465,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-24T02:00:07.484Z","response_time":106,"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":"2026-06-24T22:30:41.938Z","updated_at":"2026-06-24T22:30:41.993Z","avatar_url":"https://github.com/oracle-devrel.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Make a ZIP file for a release\n\n## Introduction\nThis is designed to be used in GitHub Actions.  It allows you to quickly create a ZIP file with files and/or directories in it.\n\n### Why another ZIP file creator Action?!\n\nThe main reason is for flexibility.  Many of the existing Actions I looked at didn't allow for renaming files, didn't support wildcards, or something that I was looking to use.  It was easy enough to write a new Action for this.\n\n## Inputs\n| Input | Type | Description |\n|-------|------|-------------|\n| `config_file` | string | The name of the JSON config file.  Default: `release_files.json`. |\n| `fail_on_missing_file` | bool | Whether or not the Action should fail if a source file is missing (not found).  Default: `false`. |\n| `overwrite_dst` | string | Should the ZIP file be overwritten (if it already exists)?  Default: `true`. |\n| `github_token` | string | The token used to interact with the GitHub API.  Usually use `secrets.GITHUB_TOKEN`. |\n\n## Outputs\n| Output | Type | Description |\n|-------|------|-------------|\n| `zip_files` | string | All ZIP files created. |\n| `missing_files` | string | All missing files (if any). |\n    \n## Usage\nThis reads a JSON config file, which tells what ZIP file(s) to create.  Here's a sample:\n\n```\n[\n  {\n    \"action\": \"create_zip\",\n    \"file_name\": \"awesome_zip.zip\",\n    \"files\": [\n      {\n        \"src_pattern\": \"*.tf\"\n      },\n      {\n        \"src_pattern\": \"testing/*.tf\",\n        \"dst_path\": \".\",\n        \"exclude\": [\n          \"testing/something.tf\"\n        ]\n      },\n      {\n        \"src\": \"orm/provider.tf\",\n        \"dst\": \"provider.tf\"\n      },\n      {\n        \"src\": \"schema.yaml\"\n      },\n      {\n        \"src\": \"orm\",\n        \"recursive\": true\n      }\n    ]\n  },\n  {\n    \"action\": \"upload_file\",\n    \"file_name\": \"awesome_zip.zip\"\n  }\n]\n```\n\nConfig file options:\n\n| Parameter | Description |\n|-----------|-------------|\n| `action` | The type of action.  `create_zip` and `upload_file` is supported now. |\n| `file_name` | The name of the ZIP file to be created (`create_zip`) or uploaded to the release (`upload_file`). |\n| `files` | Each ZIP file may have one or more files inside it. |\n\nInside of the `files` list attribute, it allows for `src` or `src_pattern` to specify the source file.  These accept files or directories to be given.\n\nIf you'd like to overwrite the destination filename (in the ZIP), specify `dst`.  This only works with `src` (not `src_pattern`).  `src_pattern` supports specifying a different destination directory for each file, by using the `dst_path` attribute.\n\nThe `src_pattern` supports excluding files from the pattern as well, using the `exclude` attribute.  This is an array of GLOBs, which can be used to exclude files from being written to the ZIP file.  If a file exists in the ZIP file, it will not be overwritten (so there might be times when files must be excluded due to this behavior).\n\n`recursive` is whether or not all directory contents should be copied.  Default: `true`.\n\nNote that you can create multiple ZIP files from a single run... simply have multiple `create_zip` actions in the config file.\n\nHere's a sample Action config that acts every time a new release is created:\n\n```\nname: Release ZIP file packaging\n\non:\n  release:\n    types: [published]\n\njobs:\n  create_zip:\n    runs-on: ubuntu-latest\n    steps:\n      - name: 'Checkout repo'\n        uses: actions/checkout@v2\n      - name: 'Make (and upload) ZIP file(s)'\n        uses: oracle-devrel/action-release-zip-maker@v0.5\n        id: zip_maker\n        with:\n          github_token: ${{ secrets.GITHUB_TOKEN }}\n```\n\n## Copyright Notice\nCopyright (c) 2024 Oracle and/or its affiliates.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foracle-devrel%2Faction-release-zip-maker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foracle-devrel%2Faction-release-zip-maker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foracle-devrel%2Faction-release-zip-maker/lists"}