Skip to content

Commit

Permalink
ci: only run open PR workflow against master
Browse files Browse the repository at this point in the history
  • Loading branch information
weibullguy committed Feb 20, 2022
1 parent f1e18e2 commit 33d7fa0
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 3 deletions.
11 changes: 10 additions & 1 deletion .github/workflows/do_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:
run: echo "::set-output name=rel_version::$(echo $(cat VERSION))"

- name: Cut release
id: cut_release
id: cutrelease
if: contains(steps.prlabels.outputs.labels, ' Release ')
uses: release-drafter/release-drafter@master
with:
Expand All @@ -58,6 +58,15 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Print release info
run: |
echo ${{ steps.cutrelease.outputs.id }}
echo ${{ steps.cutrelease.outputs.name }}
echo ${{ steps.cutrelease.outputs.tag_name }}
echo ${{ steps.cutrelease.outputs.body }}
echo ${{ steps.cutrelease.outputs.html_url }}
echo ${{ steps.cutrelease.outputs.upload_url }}
build-deploy:
name: Build and Deploy RAMSTK
needs: cut-release
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/on-pr-open.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@ name: Open Pull Request Workflow

on:
pull_request:
types: [opened]
branches:
- master
types:
- opened

jobs:
good-pr-title:
Expand Down
2 changes: 1 addition & 1 deletion src/ramstk/analyses/milhdbk217f/models/inductor.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ def calculate_part_stress(**attributes: Dict[str, Any]) -> Dict[str, Any]:
_power_input = attributes["voltage_dc_operating"] * attributes["current_operating"]
if attributes["subcategory_id"] == 2 and attributes["specification_id"] == 2:
attributes["temperature_rise"] = get_temperature_rise_spec_sheet(
attributes["page_number"]
int(attributes["page_number"])
)
elif attributes["power_operating"] > 0.0 and attributes["area"] > 0.0:
attributes["temperature_rise"] = calculate_temperature_rise_power_loss_surface(
Expand Down

0 comments on commit 33d7fa0

Please sign in to comment.