Skip to content
You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
activity

GitHub Action

Discord Status

0.2.1

Discord Status

activity

Discord Status

Update your discord status in a file using this action

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Discord Status

uses: CompeyDev/discord-status-action@0.2.1

Learn more about this action in CompeyDev/discord-status-action

Choose a version

Discord Status Action

This action fetches the status of a given user and updates that on a file.

🟢 - Online 🟡 - Idle 🔴 - Do not disturb

Inputs

file

Required This is the file you want to action to update your status at.

id

Required The user whose discord status you want to fetch. Note that this must be a string for the action to work.

Example usage

on: [push]

jobs:
  status:
    runs-on: ubuntu-latest
    name: Update Discord Status
    steps:
      - name: Checkout files
        uses: actions/checkout@v3
      - name: Update Status
        uses: CompeyDev/discord-status-action@v0.2.0
        with:
          file: README.md
          id: "893762371770802227"
      - name: Commit and push if there are changes
        run: |-
          git diff
          git config --global user.email "hi@devcomp.tk"
          git config --global user.name "DocsBot"
          git diff --quiet || (git add -u && git commit -m "🚀 Update Discord Status")
          git push