Skip to content
This repository has been archived by the owner on Jul 10, 2024. It is now read-only.

Action: Tweet GFI #4875

Merged
merged 1 commit into from
Dec 5, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 39 additions & 0 deletions .github/workflows/tweet-gfi-data.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Tweet GFI Data

on:
schedule:
- cron: "7 2/3 * * *"
workflow_dispatch:
inputs:
TEST:
description: "This is a test ?"
required: true
type: boolean
default: false

jobs:
tweet-gfi-data:
name: Tweet GFI Data

runs-on: "ubuntu-latest"

steps:
- name: Checkout
id: checkout
uses: actions/checkout@v4

- name: Tweet GFI Data
id: tweet-gfi-data
uses: ./action/
with:
TEST: ${{ inputs.TEST || 'false' }}

# Trigger
TRIGGER_TWEET_GFI_DATA: true

# Secrets
GITHUB_TOKEN: ${{ secrets.CODINASION_GITHUB_TOKEN }}
TWITTER_APP_KEY: ${{ secrets.TWITTER_APP_KEY }}
TWITTER_APP_SECRET: ${{ secrets.TWITTER_APP_SECRET }}
TWITTER_ACCESS_TOKEN: ${{ secrets.TWITTER_ACCESS_TOKEN }}
TWITTER_ACCESS_SECRET: ${{ secrets.TWITTER_ACCESS_SECRET }}
2 changes: 1 addition & 1 deletion action/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Codinasion GitHub Actions

[![Collect Program Data](https://github.com/codinasion/codinasion/actions/workflows/collect-program-data.yml/badge.svg)](https://github.com/codinasion/codinasion/actions/workflows/collect-program-data.yml) [![Collect Contributors Data](https://github.com/codinasion/codinasion/actions/workflows/collect-contributors-data.yml/badge.svg)](https://github.com/codinasion/codinasion/actions/workflows/collect-contributors-data.yml)
[![Collect Program Data](https://github.com/codinasion/codinasion/actions/workflows/collect-program-data.yml/badge.svg)](https://github.com/codinasion/codinasion/actions/workflows/collect-program-data.yml) [![Collect Contributors Data](https://github.com/codinasion/codinasion/actions/workflows/collect-contributors-data.yml/badge.svg)](https://github.com/codinasion/codinasion/actions/workflows/collect-contributors-data.yml) [![Tweet GFI Data](https://github.com/codinasion/codinasion/actions/workflows/tweet-gfi-data.yml/badge.svg)](https://github.com/codinasion/codinasion/actions/workflows/tweet-gfi-data.yml)
25 changes: 25 additions & 0 deletions action/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,31 @@ inputs:
required: true
default: "false"

TRIGGER_TWEET_GFI_DATA:
description: "Trigger tweet GFI data"
required: true
default: "false"

TWITTER_APP_KEY:
description: "twitter app key"
required: true
default: ""

TWITTER_APP_SECRET:
description: "twitter app secret"
required: true
default: ""

TWITTER_ACCESS_TOKEN:
description: "twitter access token"
required: true
default: ""

TWITTER_ACCESS_SECRET:
description: "twitter access secret"
required: true
default: ""

TEST:
description: "is test?"
required: true
Expand Down
Loading
Loading