A command line tool that fetches released iOS and tvOS apps from the iTunes Search API and publishes in a Slack channel (if not published yet).
Apple id of the released app, it's the number in the App Store url of the app, for example in https://apps.apple.com/us/app/nebula/id1447033725, the Apple Id is 1447033725
.
This tool current supports iOS and tvOS releases.
You need a Slack API bot that have the Bot Token Scopes:
- channels:read: to get the channel id from the specified name
- channels:history: to check if the messages was already posted to the channel
- chat:write: to post the message
A public existent channel where the bot has already joined
swift run recheck -a <app id> -p ios -t <slack bot token> -c <slack channel name>
This repository also provides a GitHub Action. This action requires a macOS host. Here is a sample workflow that offers a manual trigger and automatically checks hourly:
name: 'Publish Released to Slack'
on:
schedule:
- cron: '42 * * * *' # every hour at 42 minutes
workflow_dispatch:
jobs:
recheck:
name: 'Release Check'
runs-on: [macos-latest]
steps:
- name: ReleaseCheck
uses: diogot/[email protected] # Check the latest release available
with:
apple-id: ${{ vars.APPLE_ID }}
platforms: 'iOS tvOS'
slack-channel: ${{ vars.SLACK_CHANNEL }}
slack-bot-token: ${{ secrets.SLACK_TOKEN }}
verbose: true