https://github.com/flethy/github-actions-example
Example how to sync workflows with github actions
https://github.com/flethy/github-actions-example
Last synced: 11 months ago
JSON representation
Example how to sync workflows with github actions
- Host: GitHub
- URL: https://github.com/flethy/github-actions-example
- Owner: flethy
- Created: 2023-02-16T15:31:52.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-02-16T15:32:02.000Z (almost 3 years ago)
- Last Synced: 2025-01-16T19:45:52.718Z (about 1 year ago)
- Size: 1000 Bytes
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Github Actions Example
Developers love to keep the truth in their repositories. This example shows how easy it is to sync workflows within a repository with flethy Cloud.
Define the following environment variables:
- `FLETHY_WORKSPACE_ID`: Your workspace identifier
- `FLETHY_PROJECT_ID`: Your project identifier
- `FLETHY_ACCESS_TOKEN`: Your access token
The command to update a workflow is the following:
```bash
curl -L -X PUT "https://api.flethy.com/v1/w/$FLETHY_WORKSPACE_ID/p/$FLETHY_PROJECT_ID/wf" \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H "Authorization: Bearer $FLETHY_ACCESS_TOKEN" \
-d @./workflow.json
```