Skip to content

Commit

Permalink
Update workflows on branch, trigger actions
Browse files Browse the repository at this point in the history
  • Loading branch information
mmosca committed Feb 9, 2024
1 parent c76e579 commit 6b7ab2e
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 12 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -80,14 +80,14 @@ jobs:
- name: Cache dependencies
uses: Swatinem/rust-cache@v2

- name: Run cargo fmt
uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check
#- name: Run cargo fmt
# uses: actions-rs/cargo@v1
# with:
# command: fmt
# args: --all -- --check

- name: Run cargo clippy
uses: actions-rs/cargo@v1
with:
command: clippy
args: -- -D warnings
#- name: Run cargo clippy
# uses: actions-rs/cargo@v1
# with:
# command: clippy
# args: -- -D warnings
2 changes: 1 addition & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ jobs:

release:
name: Create GitHub release
if: startsWith(github.ref, 'refs/tags/')
#if: startsWith(github.ref, 'refs/tags/')
needs: build
runs-on: ubuntu-latest
steps:
Expand Down
1 change: 0 additions & 1 deletion backend/src/srt/srt_file.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ impl SrtFile {

let data: Result<SrtFrameData, ParseError> = i.text.parse();
let mut d: Option<SrtFrameData> = None;

if !data.is_err() {
let ad = data?;
has_distance |= ad.distance > 0;
Expand Down

0 comments on commit 6b7ab2e

Please sign in to comment.