{"id":13474449,"url":"https://github.com/xorilog/twitter-action","last_synced_at":"2026-01-18T06:24:33.081Z","repository":{"id":54373616,"uuid":"167555544","full_name":"xorilog/twitter-action","owner":"xorilog","description":"Post tweet using this action !","archived":false,"fork":false,"pushed_at":"2021-02-22T16:19:33.000Z","size":8,"stargazers_count":58,"open_issues_count":0,"forks_count":11,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-10-30T07:47:56.522Z","etag":null,"topics":["github-actions","go","golang","twitter"],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/xorilog.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-01-25T13:55:26.000Z","updated_at":"2024-06-03T18:17:20.000Z","dependencies_parsed_at":"2023-01-05T05:02:59.904Z","dependency_job_id":null,"html_url":"https://github.com/xorilog/twitter-action","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xorilog%2Ftwitter-action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xorilog%2Ftwitter-action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xorilog%2Ftwitter-action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xorilog%2Ftwitter-action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xorilog","download_url":"https://codeload.github.com/xorilog/twitter-action/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245738682,"owners_count":20664327,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["github-actions","go","golang","twitter"],"created_at":"2024-07-31T16:01:12.431Z","updated_at":"2026-01-18T06:24:33.024Z","avatar_url":"https://github.com/xorilog.png","language":"Go","funding_links":[],"categories":["Community Resources","Go","Uncategorized"],"sub_categories":["Notifications and Messages","Uncategorized"],"readme":"twitter-action\n---\n# Auth\nAbout the authentication see: https://developer.twitter.com/en/apps\ncreate an account, create an app\n@see https://apps.twitter.com/\n\n# retrieve the access tokens\n@see https://developer.twitter.com/en/apps\n\n# Use Action\n```\nworkflow \"on push tag, tweet message\" {\n  on = \"push\"\n  resolves = [\"Advertise tweetosphere with a message\"]\n}\n\naction \"Advertise tweetosphere with a message\" {\n  uses = \"xorilog/twitter-action@master\"\n  args = [\"-message\", \"New version is out ! $GITHUB_REF\"]\n  secrets = [\"TWITTER_CONSUMER_KEY\", \"TWITTER_CONSUMER_SECRET\", \"TWITTER_ACCESS_TOKEN\", \"TWITTER_ACCESS_SECRET\"]\n}\n\n---\nworkflow \"on push tag, tweet the content of a file\" {\n  on = \"push\"\n  resolves = [\"Advertise tweetosphere with the content of a file\"]\n}\naction \"Advertise tweetosphere with the content of a file\" {\n  uses = \"xorilog/twitter-action@master\"\n  args = [\"-file\", \"./my-tweet.yolo\"]\n  secrets = [\"TWITTER_CONSUMER_KEY\", \"TWITTER_CONSUMER_SECRET\", \"TWITTER_ACCESS_TOKEN\", \"TWITTER_ACCESS_SECRET\"]\n}\n\n---\nworkflow \"on push tag, tweet message and file content\" {\n  on = \"push\"\n  resolves = [\"Advertise tweetosphere with a message and the content of a file\"]\n}\naction \"Advertise tweetosphere with a message and the content of a file\" {\n  uses = \"xorilog/twitter-action@master\"\n  args = [\"-message\", \"Here is the big news: \", \"-file\", \"./my-tweet.yolo\"]\n  secrets = [\"TWITTER_CONSUMER_KEY\", \"TWITTER_CONSUMER_SECRET\", \"TWITTER_ACCESS_TOKEN\", \"TWITTER_ACCESS_SECRET\"]\n}\n```\n\n# Build\n```\ngo get .\ngo build\n```\n# Usage\n## Message\n```\nexport TWITTER_CONSUMER_KEY=xxx\nexport TWITTER_CONSUMER_SECRET=xxx\nexport TWITTER_ACCESS_TOKEN=xxx\nexport TWITTER_ACCESS_SECRET=xxx\n./twitter-action -message \"Hello Twitter :)\"\n```\n\n## File\n\u003e Read the content of the given file and send it as a tweet\n\n```\nexport TWITTER_CONSUMER_KEY=xxx\nexport TWITTER_CONSUMER_SECRET=xxx\nexport TWITTER_ACCESS_TOKEN=xxx\nexport TWITTER_ACCESS_SECRET=xxx\n./twitter-action -file ~/my-tweet.yolo\n```\n\n## Both\n\u003e This will concatenate the message and the content of the file given (handle the split yourself if needed)\n\n```\nexport TWITTER_CONSUMER_KEY=xxx\nexport TWITTER_CONSUMER_SECRET=xxx\nexport TWITTER_ACCESS_TOKEN=xxx\nexport TWITTER_ACCESS_SECRET=xxx\n./twitter-action -message \"Here is the big news: \" -file ~/my-tweet.yolo\n```\n# Docker\n```\n# If building locally\ndocker build -t xorilog/twitter-action .\n\n# else:\ndocker run --rm -e TWITTER_CONSUMER_KEY=${TWITTER_CONSUMER_KEY} \\\n       -e TWITTER_CONSUMER_SECRET=${TWITTER_CONSUMER_SECRET} \\\n       -e TWITTER_ACCESS_TOKEN=${TWITTER_ACCESS_TOKEN} \\\n       -e TWITTER_ACCESS_SECRET=${TWITTER_ACCESS_SECRET} \\\n       xorilog/twitter-action -message \"Hello Twitter :)\"\n```\n\n# Test\n```\n./twitter-action -message \"Here is the big news: \" -file ~/my-tweet.yolo -dry\"\n2019/03/28 16:04:47 Logging in, creating client and updating status.\n2019/03/28 16:04:47 Status updated with: Here is the big news: I am file my-tweet.yolo and this is my content.\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxorilog%2Ftwitter-action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxorilog%2Ftwitter-action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxorilog%2Ftwitter-action/lists"}