Skip to content

Commit

Permalink
fix: remove rule_set
Browse files Browse the repository at this point in the history
  • Loading branch information
chg1f committed Apr 19, 2024
1 parent 0e503e1 commit 70d7590
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,7 @@ func init() {
transport := &github.BasicAuthTransport{
Username: accessToken,
}

githubClient = github.NewClient(transport.Client())
os.RemoveAll(outputDir)
if err := os.MkdirAll(outputDir, 0o755); err != nil {
log.Fatal(err)
}
}

func getLatestRelease(from string) (*github.RepositoryRelease, error) {
Expand Down Expand Up @@ -124,6 +119,11 @@ func setActionOutput(name string, content string) {
}

func main() {
os.RemoveAll(outputDir)
if err := os.MkdirAll(outputDir, 0o755); err != nil {
log.Fatal(err)
}

var eg errgroup.Group
eg.Go(func() error {
sourceRelease, err := getLatestRelease("Loyalsoldier/clash-rules")
Expand Down

0 comments on commit 70d7590

Please sign in to comment.