-
Notifications
You must be signed in to change notification settings - Fork 48
53 lines (50 loc) · 2.03 KB
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
name: Build
on:
workflow_dispatch:
# Temporary stop until fixed
# schedule:
# - cron: "0 */3 * * *" # Every 3 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: 120
runs-on: macos-15
steps:
- uses: actions/checkout@v4
- name: GIT Setup
run: |
git fetch --tags
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
- uses: dart-lang/setup-dart@v1
- run: cd ./.github/workflows/scripts && dart pub get
- name: Process Latest Version
env:
COCOAPODS_TRUNK_TOKEN: ${{ secrets.COCOAPODS_TRUNK_TOKEN }}
run: |
dart ./.github/workflows/scripts/framework-controller.dart
- 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()