File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1010 types : [created]
1111
1212jobs :
13+ build :
14+ uses : ./.github/workflows/build.yml
15+ secrets : inherit
16+ with :
17+ build_bl_update : true
18+ build_debug : true
19+ memfault_sw_type : " hello.nrfcloud.com"
20+
1321 attach-assets :
1422 runs-on : ubuntu-24.04
23+ needs : [build]
1524 steps :
1625 - name : Checkout
1726 uses : actions/checkout@v4
1827
19- - name : Set up the GitHub CLI
20- uses : actions/gh-cli@v1
21-
22- - name : Find Workflow Run ID for Build
23- id : find_run_id
24- env :
25- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
26- run : |
27- tag_name="${{ github.event.release.tag_name }}"
28- workflow_id="test.yml"
29-
30- # Get workflow runs for the specified workflow ID and tag name
31- response=$(gh api repos/${{ github.repository }}/actions/workflows/$workflow_id/runs \
32- -F event=push \
33- -F branch="$tag_name")
34-
35- # Extract the run ID of the latest workflow run on the specified tag
36- run_id=$(echo "$response" | jq -r '.workflow_runs[] | select(.head_branch == env.tag_name) | .id' | head -n 1)
37-
38- if [ -z "$run_id" ]; then
39- echo "No run ID found for tag: $tag_name in workflow: $workflow_id"
40- exit 1
41- else
42- echo "Found run ID: $run_id"
43- echo "::set-output name=run_id::$run_id"
44- fi
45-
46- - name : Download artifacts
28+ - name : Download artifact
4729 uses : actions/download-artifact@v4
4830 with :
49- pattern : firmware-*
50- merge-multiple : true
51- run-id : ${{ steps.find_run_id.outputs.run_id }}
52- github-token : ${{ secrets.GITHUB_TOKEN }}
31+ pattern : firmware-*
32+ merge-multiple : true
5333
5434 - name : Deploy release to github
5535 uses : softprops/action-gh-release@v2
You can’t perform that action at this time.
0 commit comments