|
26 | 26 | - cron: '0 3 * * *' # Every day at 3 AM |
27 | 27 | workflow_dispatch: |
28 | 28 |
|
| 29 | +# Cancels any in-progress runs within the same group identified by workflow name and GH reference (branch or tag) |
| 30 | +# For example it would: |
| 31 | +# - terminate previous PR CI execution after pushing more changes to the same PR branch |
| 32 | +# - terminate previous on-push CI run after merging new PR to main |
| 33 | +concurrency: |
| 34 | + group: ${{ github.workflow }}-${{ github.ref }} |
| 35 | + cancel-in-progress: ${{ github.ref != 'refs/heads/main' }} |
| 36 | + |
29 | 37 | env: |
30 | 38 | DOTTY_CI_RUN: true |
31 | 39 | DEVELOCITY_ACCESS_KEY: ${{ secrets.DEVELOCITY_ACCESS_KEY }} |
@@ -818,22 +826,23 @@ jobs: |
818 | 826 | path: . |
819 | 827 | - name: Prepare MSI package |
820 | 828 | shell: bash |
821 | | - run: | |
| 829 | + run: | |
822 | 830 | msiInstaller="scala3-${{ env.RELEASE_TAG }}.msi" |
823 | 831 | mv scala.msi "${msiInstaller}" |
824 | 832 | sha256sum "${msiInstaller}" > "${msiInstaller}.sha256" |
825 | 833 |
|
826 | 834 | - name: Install GH CLI |
827 | 835 | uses: dev-hanz-ops/install-gh-cli-action@v0.2.0 |
828 | 836 | with: |
829 | | - gh-cli-version: 2.59.0 |
830 | | - |
| 837 | + gh-cli-version: 2.59.0 |
831 | 838 | # Create the GitHub release |
832 | 839 | - name: Create GitHub Release |
833 | 840 | env: |
834 | 841 | GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token |
835 | 842 | shell: bash |
836 | 843 | run: | |
| 844 | + # We need to config safe.directory in every step that might reference git |
| 845 | + # It is not persisted between steps |
837 | 846 | git config --global --add safe.directory /__w/scala3/scala3 |
838 | 847 | gh release create \ |
839 | 848 | --draft \ |
@@ -901,14 +910,14 @@ jobs: |
901 | 910 | uses: ./.github/workflows/build-chocolatey.yml |
902 | 911 | needs: [ build-sdk-package ] |
903 | 912 | with: |
904 | | - version: 3.6.0-local # TODO: FIX THIS |
| 913 | + version: 3.6.0-SNAPSHOT # Fake version, used only for choco tests |
905 | 914 | url : https://api.github.com/repos/scala/scala3/actions/artifacts/${{ needs.build-sdk-package.outputs.win-x86_64-id }}/zip |
906 | 915 | digest : ${{ needs.build-sdk-package.outputs.win-x86_64-digest }} |
907 | 916 |
|
908 | 917 | test-chocolatey-package: |
909 | 918 | uses: ./.github/workflows/test-chocolatey.yml |
910 | 919 | with: |
911 | | - version : 3.6.0-local # TODO: FIX THIS |
| 920 | + version : 3.6.0-SNAPSHOT # Fake version, used only for choco tests |
912 | 921 | java-version: 8 |
913 | 922 | if: github.event_name == 'pull_request' && contains(github.event.pull_request.body, '[test_chocolatey]') |
914 | 923 | needs: [ build-chocolatey-package ] |
0 commit comments