Skip to content

Latest commit

 

History

History
62 lines (42 loc) · 1.94 KB

File metadata and controls

62 lines (42 loc) · 1.94 KB

ReleaseCheck

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).

Usage

Requirements

App Apple ID

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.

Platform

This tool current supports iOS and tvOS releases.

Slack bot token

You need a Slack API bot that have the Bot Token Scopes:

Slack channel name

A public existent channel where the bot has already joined

Run

swift run recheck -a <app id> -p ios -t <slack bot token> -c <slack channel name>

GitHub Action

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/ReleaseCheck@1.0 # 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