|
20 | 20 | date: ${{ steps.current_time_underscores.outputs.formattedTime }} |
21 | 21 | upload_url: ${{ steps.create_release.outputs.upload_url }} |
22 | 22 | package_prefix: ${{ steps.create_release.outputs.package_prefix }} |
23 | | - tag_name: ${{ steps.create_release.outputs.tag_name }} |
| 23 | + tag_name: ${{ steps.commit.outputs.tag_name }} |
24 | 24 | version4: ${{ steps.version.outputs.version4 }} |
25 | 25 |
|
26 | 26 | # Only run the scheduled workflows on the main repo. |
|
67 | 67 | if: steps.activity.outputs.is_active == 'true' |
68 | 68 | id: commit |
69 | 69 | run: | |
70 | | - # Print diff for debugging |
71 | | - git diff |
72 | | -
|
73 | | - # For nightly we do not want to commit those changes, |
74 | | - # save them and then apply when building |
75 | | - git diff > /tmp/nightly-release.patch |
76 | | -
|
77 | | - revision=$(git rev-parse HEAD) |
78 | | - echo "revision=$revision" | tee -a $GITHUB_OUTPUT |
79 | | -
|
80 | | - - name: Upload nightly release patch |
81 | | - uses: actions/upload-artifact@v4 |
82 | | - if: steps.activity.outputs.is_active == 'true' |
83 | | - with: |
84 | | - name: nightly-release-patch |
85 | | - path: /tmp/nightly-release.patch |
| 70 | + $RELEASE_SCRIPT commit |
| 71 | + $RELEASE_SCRIPT tag-and-push |
86 | 72 |
|
87 | 73 | - name: Get current time with underscores |
88 | 74 | uses: josStorer/get-current-time@v2.1.2 |
@@ -147,15 +133,8 @@ jobs: |
147 | 133 | steps: |
148 | 134 | - name: Clone Ruffle repo |
149 | 135 | uses: actions/checkout@v4 |
150 | | - |
151 | | - - name: Download nightly release patch |
152 | | - uses: actions/download-artifact@v4 |
153 | 136 | with: |
154 | | - name: nightly-release-patch |
155 | | - path: /tmp |
156 | | - |
157 | | - - name: Apply nightly release patch |
158 | | - run: git apply --verbose /tmp/nightly-release.patch |
| 137 | + ref: ${{ needs.create-nightly-release.outputs.tag_name }} |
159 | 138 |
|
160 | 139 | - name: Install Rust toolchain |
161 | 140 | uses: dtolnay/rust-toolchain@stable |
@@ -252,6 +231,8 @@ jobs: |
252 | 231 | steps: |
253 | 232 | - name: Clone Ruffle repo |
254 | 233 | uses: actions/checkout@v4 |
| 234 | + with: |
| 235 | + ref: ${{ needs.create-nightly-release.outputs.tag_name }} |
255 | 236 |
|
256 | 237 | - name: Download aarch64 binary |
257 | 238 | uses: actions/download-artifact@v4 |
@@ -349,6 +330,8 @@ jobs: |
349 | 330 | steps: |
350 | 331 | - name: Clone Ruffle repo |
351 | 332 | uses: actions/checkout@v4 |
| 333 | + with: |
| 334 | + ref: ${{ needs.create-nightly-release.outputs.tag_name }} |
352 | 335 |
|
353 | 336 | - name: Install Rust toolchain |
354 | 337 | uses: dtolnay/rust-toolchain@stable |
@@ -382,15 +365,8 @@ jobs: |
382 | 365 | steps: |
383 | 366 | - name: Clone Ruffle repo |
384 | 367 | uses: actions/checkout@v4 |
385 | | - |
386 | | - - name: Download nightly release patch |
387 | | - uses: actions/download-artifact@master |
388 | 368 | with: |
389 | | - name: nightly-release-patch |
390 | | - path: /tmp |
391 | | - |
392 | | - - name: Apply nightly release patch |
393 | | - run: git apply --verbose /tmp/nightly-release.patch |
| 369 | + ref: ${{ needs.create-nightly-release.outputs.tag_name }} |
394 | 370 |
|
395 | 371 | - name: Install Rust toolchain |
396 | 372 | uses: dtolnay/rust-toolchain@stable |
@@ -543,15 +519,8 @@ jobs: |
543 | 519 | steps: |
544 | 520 | - name: Clone Ruffle repo |
545 | 521 | uses: actions/checkout@v4 |
546 | | - |
547 | | - - name: Download nightly release patch |
548 | | - uses: actions/download-artifact@master |
549 | 522 | with: |
550 | | - name: nightly-release-patch |
551 | | - path: /tmp |
552 | | - |
553 | | - - name: Apply nightly release patch |
554 | | - run: git apply --verbose /tmp/nightly-release.patch |
| 523 | + ref: ${{ needs.create-nightly-release.outputs.tag_name }} |
555 | 524 |
|
556 | 525 | - name: Install Rust toolchain |
557 | 526 | uses: dtolnay/rust-toolchain@stable |
@@ -731,6 +700,8 @@ jobs: |
731 | 700 | if: github.repository == 'ruffle-rs/ruffle' |
732 | 701 | steps: |
733 | 702 | - uses: actions/checkout@v4 |
| 703 | + with: |
| 704 | + ref: ${{ needs.create-nightly-release.outputs.tag_name }} |
734 | 705 |
|
735 | 706 | - name: Get current time with dashes |
736 | 707 | uses: josStorer/get-current-time@v2.1.2 |
|
0 commit comments