https://github.com/hellocoop/tools
https://github.com/hellocoop/tools
Last synced: 6 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/hellocoop/tools
- Owner: hellocoop
- Created: 2023-09-06T12:05:56.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2025-01-31T12:25:19.000Z (over 1 year ago)
- Last Synced: 2025-01-31T13:28:58.979Z (over 1 year ago)
- Size: 127 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# tools
This repository contains reusable GitHub Actions workflows that can be utilized in various repositories within the [hellocoop](https://github.com/hellocoop) organization.
## Reusable Workflows (`./github/workflows/*`)
> Worflows prefixed with `content-` are used by the content repos ([www.hello.coop](https://github.com/hellocoop/www.hello.coop), [hello.dev](https://github.com/hellocoop/hello.dev), etc)
### `content-merge.yml`
**Purpose:** This workflow is responsible for checking if a Pull Request (PR) is ready to be merged into the `main` branch.
**How it works:** It accomplishes this by fetching all the latest changes in the `main` branch and running tests on the PR to ensure it meets the necessary criteria for merging.
**Usage:**
```yml
uses: hellocoop/tools/.github/workflows/content-merge.yml@main
```
### `content-sync.yml`
**Purpose:** This workflow is responsible for synchronizing the built content with the associated S3 bucket and perform cache invalidation.
**How it works:** This workflow requires a `STACK` name argument as part of the AWS CloudFormation. The workflow builds the content using the npm run build command in the repository, which creates content in an S3 directory. This content is then copied to its associated S3 bucket, and finally, it invalidates the CloudFront cache.
**Usage:**
```yml
uses: hellocoop/tools/.github/workflows/content-sync.yml@main
with:
STACK: #type: string, required: true
```