https://github.com/brob/action-add-activity
https://github.com/brob/action-add-activity
Last synced: 12 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/brob/action-add-activity
- Owner: brob
- Created: 2022-02-16T19:28:40.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2023-12-15T02:47:12.000Z (over 2 years ago)
- Last Synced: 2025-05-16T05:37:16.854Z (about 1 year ago)
- Language: JavaScript
- Size: 969 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Add Orbit Activity Action
An action that creates an Orbit activity from a series of Workflow inputs. Perfect for creating on-the-fly integrations using Actions (specifically in the GitHub ecosystem).
## Inputs
| input property | description |
| --------------|-------------|
| workspace | the workspace id |
| api_key | your orbit API key (make it a secret |
| activity_type | Type of activity to add |
| username | Username of user to add activity to |
| title | Title of activity |
| description | Description of activity |
| occurred_at | Date and time of activity |
## Example workflow
```javascript
name: addDiscussions
# Controls when the workflow will run
on:
discussion:
types: [created]
jobs:
send:
# The type of runner that the job will run on
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be execute as part of the job
steps:
- name: Send Activity
id: sending
uses: brob/action-add-activity@v1.5.11
with:
workspace: ${{ secrets.ORBIT_WORKSPACE }}
api_key: ${{ secrets.ORBIT_KEY }}
username: ${{ github.event.discussion.user.login }}
activity_type: 'discussion:created'
title: 'Discussion created'
occured_at: ${{ github.event.discussion.created_at }}
description: |
# ${{github.event.discussion.title }}
${{ github.event.discussion.body }}
```