{"id":15090102,"url":"https://github.com/actions-rindeal/upload-artifact","last_synced_at":"2026-01-04T08:06:22.707Z","repository":{"id":252730871,"uuid":"825535978","full_name":"actions-rindeal/upload-artifact","owner":"actions-rindeal","description":"⬆️📦🚀 Upload Artifact Action: Seamlessly upload files as build artifacts in your GitHub Actions workflow. This action extends actions/upload-artifact with additional JSON metadata output and default path settings. Perfect for cross-workflow and cross-repository artifact transfers. Boost your CI/CD efficiency now!","archived":false,"fork":false,"pushed_at":"2024-09-22T21:28:44.000Z","size":15,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-26T11:12:45.923Z","etag":null,"topics":["action","actions","artifact","artifacts","beta","continuous-deployment","deployment","github-action","github-actions","upload-artefacts","upload-artifact"],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/actions-rindeal.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":"2024-07-08T03:09:48.000Z","updated_at":"2024-09-23T17:10:27.000Z","dependencies_parsed_at":"2024-08-12T06:06:39.712Z","dependency_job_id":null,"html_url":"https://github.com/actions-rindeal/upload-artifact","commit_stats":null,"previous_names":["actions-rindeal/upload-artifact"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/actions-rindeal%2Fupload-artifact","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/actions-rindeal%2Fupload-artifact/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/actions-rindeal%2Fupload-artifact/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/actions-rindeal%2Fupload-artifact/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/actions-rindeal","download_url":"https://codeload.github.com/actions-rindeal/upload-artifact/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244825192,"owners_count":20516587,"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":["action","actions","artifact","artifacts","beta","continuous-deployment","deployment","github-action","github-actions","upload-artefacts","upload-artifact"],"created_at":"2024-09-25T09:21:30.278Z","updated_at":"2026-01-04T08:06:22.653Z","avatar_url":"https://github.com/actions-rindeal.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# ⬆️📦🚀 Upload Artifact Action\n\nThis action uploads any files as build artifacts in your GitHub Actions workflow.\nIt's a wrapper around [actions/upload-artifact](https://github.com/actions/upload-artifact)\nwith an additional `artifact` output, which is a JSON string with extended artifact metadata,\nand default `path` input set to `${INPUT_NAME}.tar`.\n\nTo be paired with the [download-artifact](https://github.com/actions-rindeal/download-artifact) action,\nwhich is again a wrapper around [actions/download-artifact](https://github.com/actions/download-artifact)\nwith an additional `artifact` input that accepts the extended artifact metadata JSON string.\n\n## 🌟 How is this useful?\n\nBoth actions together allow you to easily perform cross-workflow-run or even cross-repository artifact transfers\nwith just a single variable being passed around.\n\n## 📋 Usage\n\n```yaml\n- name: \"Upload artifact\"\n  id: 'UPLOAD'\n  uses: 'actions-rindeal/upload-artifact@v4'\n  with:\n    'name': 'my-artifact'\n    # will upload `${GITHUB_WORKSPACE}/my-artifact.tar` file\n```\n\nExample of passing the metadata around:\n```yaml\nwith:\n  'artifact': ${{ toJSON(fromJSON(steps['UPLOAD'].outputs['ARTIFACT'])) }}\n```\n\nExample of accessing the metadata props:\n```yaml\nenv:\n  'ARTIFACT_NAME':  ${{ fromJSON(steps['UPLOAD'].outputs['ARTIFACT']).name }}\n  'ARTIFACT_WF_ID': ${{ fromJSON(steps['UPLOAD'].outputs['ARTIFACT']).workflow_run.id }}\n```\n\n## 🔧 Inputs\n\n| Name               | Description                                    | Default          |\n|--------------------|------------------------------------------------|------------------|\n| `name`             | Artifact name                                  | `'artifact'`     |\n| `path`             | File, directory or wildcard pattern to upload  | `'${name}.tar'`  |\n| `if-no-files-found`| Behavior if no files are found                 | `'warn'`         |\n| `retention-days`   | Number of days before artifact expiry (0 for default retention) | `0` |\n| `compression-level`| Zlib compression level for the artifact archive| `'6'`            |\n| `overwrite`        | Whether to overwrite an existing artifact with the same name | `'false'` |\n\n## 📤 Outputs\n\n| Name           | Description                | Example                                                      |\n|----------------|----------------------------|--------------------------------------------------------------|\n| `artifact-id`  | The ID, usable in API      | `'1676293972'`                                               |\n| `artifact-url` | The WebUI download URL     | `'https://github.com/org/repo/actions/runs/123/artifacts/456'`|\n| `artifact`     | JSON with metadata         | See below                                                    |\n\n## 📜 Extended Artifact Information\n\nThe `artifact` output provides a JSON object with detailed information about the uploaded artifact. Here's an example:\n\n```json\n{\n  \"id\": 1676293972,\n  \"name\": \"my-artifact\",\n  \"url\": \"https://api.github.com/repos/octo-org/octo-repo/actions/artifacts/1676293972\",\n  \"archive_download_url\": \"https://api.github.com/repos/octo-org/octo-repo/actions/artifacts/1676293972/zip\",\n  \"workflow_run\": {\n    \"id\": 9834162510,\n    \"repository_full_name\": \"octo-org/octo-repo\",\n    \"repository_id\": 1234567,\n    \"head_repository_id\": 1234567,\n    \"head_branch\": \"master\",\n    \"head_sha\": \"a9eb7e22d2c4809bf15c5beff6399ffe25f79f59\"\n  }\n}\n```\n\n## 📚 Notes\n\nFor more details on artifact handling in GitHub Actions, refer to the [official documentation](https://docs.github.com/en/actions/using-workflows/storing-workflow-data-as-artifacts).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Factions-rindeal%2Fupload-artifact","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Factions-rindeal%2Fupload-artifact","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Factions-rindeal%2Fupload-artifact/lists"}