Skip to content

Commit

Permalink
chore: update condition for release build
Browse files Browse the repository at this point in the history
  • Loading branch information
tusharmath committed Nov 28, 2024
1 parent 320d5ce commit a587dc9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ jobs:
release:
needs:
- build
if: ${{ github.event_name == 'push' && github.ref == 'ref/heads/main' }}
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
name: Release
runs-on: ubuntu-latest
permissions:
Expand Down
2 changes: 1 addition & 1 deletion tests/ci.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ fn generate() {
Context::github()
.event_name()
.eq("push".into())
.and(Context::github().ref_().eq("ref/heads/main".into())),
.and(Context::github().ref_().eq("refs/heads/main".into())),
)
.add_needs(build.clone())
.add_env(Env::github())
Expand Down

0 comments on commit a587dc9

Please sign in to comment.