Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hashicorp/actions-persist-metadata
Persists metadata used by Common Release Tooling
https://github.com/hashicorp/actions-persist-metadata
crt
Last synced: 3 months ago
JSON representation
Persists metadata used by Common Release Tooling
- Host: GitHub
- URL: https://github.com/hashicorp/actions-persist-metadata
- Owner: hashicorp
- License: mpl-2.0
- Created: 2022-09-29T19:39:55.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-09-02T23:36:54.000Z (4 months ago)
- Last Synced: 2024-10-03T11:31:50.969Z (3 months ago)
- Topics: crt
- Homepage:
- Size: 25.4 KB
- Stars: 1
- Watchers: 8
- Forks: 2
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# Persist Metadata Action
[![Heimdall](https://heimdall.hashicorp.services/api/v1/assets/actions-persist-metadata/badge.svg?key=822b0e2cf3c960db813d2c5a2d6dbfde76d040feb756cc7cb98e049c449a32f5)](https://heimdall.hashicorp.services/site/assets/actions-persist-metadata) [![CI](https://github.com/hashicorp/actions-persist-metadata/actions/workflows/lint.yml/badge.svg)](https://github.com/hashicorp/actions-persist-metadata/actions/workflows/lint.yml)Persists metadata provided by Common Release Tooling
_This is intended for internal HashiCorp use only_
## Usage
Add the following to your workflow in the `jobs` stanza:
```
on:
repository_dispatch:
types: "persist-metadata"jobs:
persist-metadata:
runs-on: ubuntu-latest
steps:
- name: Persist metadata
uses: hashicorp/actions-persist-metadata@v1
```### In reusuable workflows
If your workflow is shared between Common Release Tooling workflows and other product specific
workflows using [reusable
workflows](https://docs.github.com/en/actions/using-workflows/reusing-workflows) you can add a
conditional to skip the job when it is not required.```
on: workflow_calljobs:
persist-metadata:
# Common-release-tooling uses `repository_dispatch` to run workflows
if: github.event_name == 'repository_dispatch'
runs-on: ubuntu-latest
steps:
- name: Persist metadata
uses: hashicorp/actions-persist-metadata@v1```