Skip to content

Commit

Permalink
fix: add pause_options to schedule output
Browse files Browse the repository at this point in the history
  • Loading branch information
iloveitaly committed Dec 29, 2023
1 parent f33dac8 commit b424c7e
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 14 deletions.
18 changes: 4 additions & 14 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,24 +12,17 @@ on:
- Package.*
- .github/**/*

# TODO previously would manually tag,
# tags:
# - v* # Push events to matching v*, i.e. v1.0, v20.15.10

# by default, permissions are read-only, read + write is required for git pushes
permissions:
contents: write

jobs:
build:
# TODO switch to macos-latest once that represents > 13
runs-on: macos-13
env:
# https://docs.github.com/en/actions/using-workflows/triggering-a-workflow#triggering-a-workflow-from-a-workflow
# https://stackoverflow.com/questions/60418323/triggering-a-new-workflow-from-another-workflow/60418414#60418414
GITHUB_TOKEN: ${{ secrets.GH_PERSONAL_TOKEN }}
steps:
- name: Checkout
uses: actions/checkout@v4
with:
# https://stackoverflow.com/questions/60418323/triggering-a-new-workflow-from-another-workflow/60418414#60418414
token: ${{ secrets.GH_PERSONAL_TOKEN }}

- name: Trunk Check
uses: trunk-io/trunk-action@v1
Expand All @@ -53,7 +46,6 @@ jobs:
id: changelog
uses: TriPSs/conventional-changelog-action@v4
with:
github-token: ${{ secrets.GH_PERSONAL_TOKEN }}
skip-version-file: "true"
pre-commit: bin/pre-commit.js

Expand All @@ -73,11 +65,9 @@ jobs:
# output options: https://github.com/TriPSs/conventional-changelog-action#outputs
body: ${{ steps.changelog.outputs.clean_changelog }}
tag_name: ${{ steps.changelog.outputs.tag }}
token: ${{ secrets.GH_PERSONAL_TOKEN }}

- name: Update Homebrew formula
uses: dawidd6/action-homebrew-bump-formula@v3
with:
token: ${{secrets.GH_PERSONAL_TOKEN}}
tap: iloveitaly/homebrew-tap
livecheck: true
2 changes: 2 additions & 0 deletions Sources/hyper-focus/hyper_focus.swift
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ struct SwitchingActivity: CustomStringConvertible {
struct Configuration: Codable {
struct ScheduleItem: Codable, Equatable {
var pause_limit: Int?
// NOTE not used in the application, but passed through to the UI
var pause_options: [Int]?
var start: Int?
var start_minute: Int?
var end: Int?
Expand Down
6 changes: 6 additions & 0 deletions schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,12 @@
"pause_limit": {
"type": "number"
},
"pause_options": {
"type": "array",
"items": {
"type": "number"
}
},
"schedule_only": {
"type": "boolean"
},
Expand Down

0 comments on commit b424c7e

Please sign in to comment.