Skip to content

Commit

Permalink
Change action token to RELEASE_TOKEN
Browse files Browse the repository at this point in the history
This is due to this issue. softprops/action-gh-release#572
  • Loading branch information
jim-junior committed Jan 13, 2025
1 parent 168e36c commit 1a02a7d
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -35,4 +35,4 @@ jobs:
with:
files: output/eda-${{ github.event.release.tag_name }}-${{ matrix.os }}-${{ runner.arch }}${{ matrix.ext }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }}
3 changes: 3 additions & 0 deletions cmd/cli/consumer.go
Original file line number Diff line number Diff line change
@@ -4,6 +4,8 @@ Copyright © 2025 Beingana Jim Junior
package cli

import (
"fmt"

csmr "github.com/jim-junior/eda/cmd/consumer"
"github.com/spf13/cobra"
)
@@ -14,6 +16,7 @@ var ConsumerCmd = &cobra.Command{
Run: func(cmd *cobra.Command, args []string) {
topic := cmd.Flag("topic").Value.String()
if topic == "" {
fmt.Println("ERROR: You must specify the Topic to listen too. use --topic or -t flags to specify it")
return
}
csmr.RunConsumer(topic)
1 change: 1 addition & 0 deletions cmd/consumer/root.go
Original file line number Diff line number Diff line change
@@ -9,6 +9,7 @@ import (

func RunConsumer(topic string) error {
redisClient := api.NewRedisClient()
fmt.Println("Consumer subscribed to `" + topic + "` Topic")
for {
// Get the resource from the message queue
pubsub := redisClient.Subscribe(context.Background(), topic)

0 comments on commit 1a02a7d

Please sign in to comment.