https://github.com/apify/workflows
Apify's reusable github workflows
https://github.com/apify/workflows
Last synced: 8 months ago
JSON representation
Apify's reusable github workflows
- Host: GitHub
- URL: https://github.com/apify/workflows
- Owner: apify
- Created: 2022-08-25T08:38:26.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2025-04-10T01:04:30.000Z (about 1 year ago)
- Last Synced: 2025-04-10T02:22:23.983Z (about 1 year ago)
- Language: Python
- Size: 252 KB
- Stars: 7
- Watchers: 7
- Forks: 3
- Open Issues: 13
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# workflows
This repository contains reusable github workflows used in Apify projects.
## Docs
Each of the workflows present in `.github/workflows` directory, unless prefixed by `local_`, is meant to be used by [caller workflows](https://docs.github.com/en/actions/using-workflows/reusing-workflows#example-caller-workflow)
## How to release new version
1. Create a PR. **IMPORTANT: Avoid using the ‘chore:’ prefix, as it doesn’t work with RELEASE-PLEASE. Use ‘feat:’ or ‘fix:’ instead.**
2. Merge PR into the main branch after approval. This triggers an automated workflow that generates a new PR for the release using the RELEASE-PLEASE action.
3. Navigate to the PR and merge it into the main branch. This will publish the release with an updated changelog.
## Examples
Build container image and push it to AWS ECR.
> NOTE: AWS ECR repository needs to be already created.
```yml
name: build and push
on:
workflow_dispatch:
push:
branches:
- main
jobs:
get_values:
uses: apify/workflows/.github/workflows/get_values.yaml@main
build:
needs: get_values
uses: apify/workflows/.github/workflows/build_docker_image_and_push_to_ecr.yaml@main
secrets:
awsAccessKeyId: ${{ secrets.AWS_ACCESS_KEY_ID }}
awsSecretAccessKey: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
slackToken: ${{ secrets.SLACK_BOT_USER_OAUTH_ACCESS_TOKEN }}
with:
imageTag: ${{ needs.get_values.outputs.short_commit_sha }}
repository:
registry: .dkr.ecr..amazonaws.com
slackChannelId:
actorOverride: ${{ needs.get_values.outputs.commit_author }}
```