Skip to content

Commit

Permalink
ci: disable auto deployment and fix clippy audit
Browse files Browse the repository at this point in the history
  • Loading branch information
Tguntenaar committed Nov 15, 2024
1 parent 6850a0a commit e482ed6
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 31 deletions.
58 changes: 29 additions & 29 deletions .github/workflows/fly-deploy.yml
Original file line number Diff line number Diff line change
@@ -1,31 +1,31 @@
# See https://fly.io/docs/app-guides/continuous-deployment-with-github-actions/
# # See https://fly.io/docs/app-guides/continuous-deployment-with-github-actions/

name: Fly Deploy
on:
push:
branches:
- main
# name: Fly Deploy
# on:
# push:
# branches:
# - main

jobs:
deploy:
name: Deploy Applications
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: superfly/flyctl-actions/setup-flyctl@master
- name: Deploy Devhub
run: flyctl deploy --remote-only -c fly.toml
env:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}
- name: Deploy Infra
run: flyctl deploy --remote-only -c fly.infra.toml
env:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}
- name: Deploy Events
run: flyctl deploy --remote-only -c fly.events.toml
env:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}
- name: Deploy Templar
run: flyctl deploy --remote-only -c fly.templar.toml
env:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}
# jobs:
# deploy:
# name: Deploy Applications
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v4
# - uses: superfly/flyctl-actions/setup-flyctl@master
# - name: Deploy Devhub
# run: flyctl deploy --remote-only -c fly.toml
# env:
# FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}
# - name: Deploy Infra
# run: flyctl deploy --remote-only -c fly.infra.toml
# env:
# FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}
# - name: Deploy Events
# run: flyctl deploy --remote-only -c fly.events.toml
# env:
# FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}
# - name: Deploy Templar
# run: flyctl deploy --remote-only -c fly.templar.toml
# env:
# FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}
4 changes: 2 additions & 2 deletions src/nearblocks_client/transactions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ fn get_rfp_id(transaction: &Transaction) -> Result<i32, &'static str> {
.ok_or("No actions found in transaction")?;

let args: PartialEditRFPArgs =
serde_json::from_str(&action.args.as_ref().unwrap()).map_err(|e| {
serde_json::from_str(action.args.as_ref().unwrap()).map_err(|e| {
eprintln!("Failed to parse JSON: {:?}", e);
"Failed to parse proposal arguments"
})?;
Expand Down Expand Up @@ -251,7 +251,7 @@ fn get_proposal_id(transaction: &Transaction) -> Result<i32, &'static str> {
.and_then(|actions| actions.first())
.ok_or("No actions found in transaction")?;

let args: PartialEditProposalArgs = serde_json::from_str(&action.args.as_ref().unwrap())
let args: PartialEditProposalArgs = serde_json::from_str(action.args.as_ref().unwrap())
.map_err(|e| {
eprintln!("Failed to parse JSON: {:?}", e);
"Failed to parse proposal arguments"
Expand Down

0 comments on commit e482ed6

Please sign in to comment.