Created
August 7, 2020 07:21
-
-
Save wata/c368fe633c821dcdbe21b9d18642d5eb to your computer and use it in GitHub Desktop.
GitHub Actions workflow
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Get TestFlight Feedback | |
on: | |
schedule: | |
- cron: 0 0 * * * # UTC 0:00 | |
jobs: | |
build: | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup SSH Keys and known_hosts for fastlane match | |
# Copied from https://github.com/maddox/actions/blob/master/ssh/entrypoint.sh | |
run: | | |
SSH_PATH="$HOME/.ssh" | |
mkdir -p "$SSH_PATH" | |
touch "$SSH_PATH/known_hosts" | |
echo "$PRIVATE_KEY" > "$SSH_PATH/id_rsa" | |
chmod 700 "$SSH_PATH" | |
ssh-keyscan github.com >> ~/.ssh/known_hosts | |
chmod 600 "$SSH_PATH/known_hosts" | |
chmod 600 "$SSH_PATH/id_rsa" | |
eval $(ssh-agent) | |
ssh-add "$SSH_PATH/id_rsa" | |
env: | |
PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }} | |
- name: Run Fastlane - Get TestFlight Feedback | |
run: fastlane testflight_feedback | |
env: | |
FASTLANE_PASSWORD: ${{ secrets.FASTLANE_PASSWORD }} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment