@@ -17,50 +17,57 @@ jobs:
1717 strategy :
1818 fail-fast : false
1919 matrix :
20- build : [trunk ]
20+ build : [update/add-PRs-to-nightly-release ]
2121 runs-on : ubuntu-20.04
2222 steps :
23- - name : Checkout Code
24- uses : actions/checkout@v3
25- with :
26- ref : ${{ matrix.build }}
23+ # - name: Checkout Code
24+ # uses: actions/checkout@v3
25+ # with:
26+ # ref: ${{ matrix.build }}
2727
28- - name : Install Node
29- uses : actions/setup-node@v3
30- with :
31- node-version-file : ' .nvmrc'
28+ # - name: Install Node
29+ # uses: actions/setup-node@v3
30+ # with:
31+ # node-version-file: '.nvmrc'
3232
33- - name : Install Node Dependencies
34- run : npm ci --no-optional
33+ # - name: Install Node Dependencies
34+ # run: npm ci --no-optional
3535
36- - name : Build zip
37- run : bash bin/build-plugin-zip.sh -d
36+ # - name: Build zip
37+ # run: bash bin/build-plugin-zip.sh -d
3838
39- - name : Deploy nightly build
40- uses :
WebFreak001/[email protected] 41- env :
42- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
39+ # - name: Deploy nightly build
40+ # uses: WebFreak001/[email protected] 41+ # env:
42+ # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
43+ # with:
44+ # # 80943895 is the release ID of this nightly release https://github.com/woocommerce/woocommerce-blocks/releases/tag/nightly
45+ # upload_url: https://uploads.github.com/repos/${{ github.repository }}/releases/80943895/assets{?name,label}
46+ # release_id: 80943895
47+ # asset_path: woocommerce-gutenberg-products-block.zip
48+ # asset_name: woocommerce-blocks-${{ matrix.build }}-nightly.zip
49+ # asset_content_type: application/zip
50+ # max_releases: 1
51+ - name : Get Date
52+ id : date
53+ uses : calculate-dates-and-times
4354 with :
44- # 80943895 is the release ID of this nightly release https://github.com/woocommerce/woocommerce-blocks/releases/tag/nightly
45- upload_url : https://uploads.github.com/repos/${{ github.repository }}/releases/80943895/assets{?name,label}
46- release_id : 80943895
47- asset_path : woocommerce-gutenberg-products-block.zip
48- asset_name : woocommerce-blocks-${{ matrix.build }}-nightly.zip
49- asset_content_type : application/zip
50- max_releases : 1
55+ format : ' YYYY-MM-DD'
56+ subtract : ' 1 day'
5157 - name : Update release notes
52585359 with :
5460 token : ${{ secrets.GITHUB_TOKEN }}
55- id : 80943895
56- body : " PRs merged since last nightly build"
57- update :
58- name : Update nightly tag commit ref
59- runs-on : ubuntu-20.04
60- steps :
61- - name : Update nightly tag
62- uses :
richardsimko/[email protected] 63- with :
64- tag_name : nightly
65- env :
66- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
61+ id : untagged-5d05565b4bbf670ee9e0
62+ body : " [PRs merged since last nightly build](https://github.com/woocommerce/woocommerce-blocks/pulls?q=is%3Apr+closed%3A%3E${{ steps.date.outputs.date }}+is%3Amerged)"
63+ spacing : 2
64+ # update:
65+ # name: Update nightly tag commit ref
66+ # runs-on: ubuntu-20.04
67+ # steps:
68+ # - name: Update nightly tag
69+ # uses: richardsimko/[email protected] 70+ # with:
71+ # tag_name: nightly
72+ # env:
73+ # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
0 commit comments