Skip to content

Commit

Permalink
chore: Add schedule
Browse files Browse the repository at this point in the history
  • Loading branch information
gmpinder committed Jun 3, 2024
1 parent 3d90c69 commit 46169d9
Showing 1 changed file with 6 additions and 15 deletions.
21 changes: 6 additions & 15 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
name: Earthly main branch +all

concurrency:
group: ${{ github.workflow }}-main
cancel-in-progress: true

on:
schedule:
- cron: "00 17 * * *" # build at 17:00 UTC every day
workflow_dispatch:
push:
branches:
Expand All @@ -16,22 +22,7 @@ jobs:
runs-on: ubuntu-latest

steps:
# There is a bug selecting a satellite in version 0.8
# so we use 0.7 to login and connect to the satellite
# before switching to the latest version
- uses: earthly/actions-setup@v1
with:
version: v0.7.23

- name: Earthly login
run: |
earthly account login --token ${{ secrets.EARTHLY_SAT_TOKEN }} >> /dev/null
earthly org s blue-build
earthly sat s earthly-lib
- uses: earthly/actions-setup@v1
with:
version: v0.8.2

# Setup repo and add caching
- uses: actions/checkout@v4
Expand Down

0 comments on commit 46169d9

Please sign in to comment.