Skip to content

Commit

Permalink
chore: update docker repo on release creation (#5708)
Browse files Browse the repository at this point in the history
  • Loading branch information
asbiin authored Nov 19, 2021
1 parent f3ad137 commit 3bb49d0
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -143,3 +143,18 @@ jobs:
with:
name: assets
path: ${{ steps.package.outputs.assets }}

docker-workflow:
needs: [semantic, package]
runs-on: ubuntu-latest
name: Docker release create
if: needs.semantic.outputs.new_release_published == 'true'

steps:
- name: Dispatch docker release
uses: benc-uk/workflow-dipatch@v1
with:
workflow: Release update
repo: monicahq/docker
token: ${{ secrets.DOCKER_GITHUB_TOKEN }}
inputs: '{ "release": "v${{ needs.semantic.outputs.new_release_version }}" }'"
4 changes: 2 additions & 2 deletions tests/Unit/Jobs/ScheduleStayInTouchTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public function it_doesnt_dispatches_an_email_if_free_account()
{
NotificationFacade::fake();

Carbon::setTestNow(Carbon::create(2017, 1, 1, 7, 0, 0, 'America/New_York'));
Carbon::setTestNow(Carbon::create(2017, 1, 1, 0, 0, 0, 'America/New_York'));

config(['monica.requires_subscription' => true]);

Expand Down Expand Up @@ -96,7 +96,7 @@ public function it_reschedule_missed_stayintouch()
{
NotificationFacade::fake();

Carbon::setTestNow(Carbon::create(2019, 1, 1, 7, 0, 0, 'America/New_York'));
Carbon::setTestNow(Carbon::create(2019, 1, 1, 0, 0, 0, 'America/New_York'));

$account = factory(Account::class)->create([
'default_time_reminder_is_sent' => '07:00',
Expand Down

0 comments on commit 3bb49d0

Please sign in to comment.