Build #4810
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: Build | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: "0 */6 * * *" # Every 6 hours | |
jobs: | |
latest_release: | |
# Don't run on private repo unless it is a PR or manual run | |
if: (github.repository == 'invertase/firestore-ios-sdk-frameworks' && github.event_name == 'schedule') || github.event_name == 'workflow_dispatch' || github.event_name == 'pull_request' | |
name: "Latest Release" | |
timeout-minutes: 10 | |
runs-on: macos-12 | |
steps: | |
- uses: actions/checkout@v2 | |
- name: GIT Setup | |
run: | | |
git config --global user.name '@Salakar' | |
git config --global user.email '[email protected]' | |
git remote set-url origin [email protected]:$GITHUB_REPOSITORY | |
- uses: webfactory/[email protected] | |
if: ${{ github.repository == 'invertase/firestore-ios-sdk-frameworks' }} | |
with: | |
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }} | |
- name: Set Github Token Securely | |
if: ${{ github.repository == 'invertase/firestore-ios-sdk-frameworks' }} | |
run: echo "GITHUB_TOKEN=${{ secrets.GH_TOKEN }}" >> $GITHUB_ENV | |
- name: Process Latest Version | |
run: | | |
./.github/workflows/scripts/process-latest-version.sh | |
- name: Report Failure Status | |
uses: 8398a7/action-slack@v3 | |
with: | |
status: custom | |
fields: all | |
custom_payload: | | |
{ | |
attachments: [{ | |
color: '${{ job.status }}' === 'success' ? 'good' : '${{ job.status }}' === 'failure' ? 'danger' : 'warning', | |
text: `firebase-ios-sdk pre-compile of ${process.env.LATEST_FIREBASE_VERSION} ${{ job.status }}`, | |
}] | |
} | |
env: | |
SLACK_WEBHOOK_URL: ${{ secrets.INVERTASEBOT_SLACK_GITHUB_CHANNEL_WEBHOOK_URL }} | |
if: failure() |