|
1 | 1 | name: Release
|
2 | 2 |
|
3 | 3 | on:
|
4 |
| - push: |
5 |
| - branches: |
6 |
| - - main |
7 |
| - # The only commits that will contain changes to the masterlist will be releases |
| 4 | + pull_request: |
8 | 5 | paths:
|
9 |
| - - MASTERLIST.md |
| 6 | + - 'packages/sources/**' |
| 7 | + - 'packages/composites/**' |
| 8 | + - 'packages/targets/**' |
| 9 | + - 'packages/core/**' |
10 | 10 | workflow_dispatch:
|
11 | 11 | inputs:
|
12 | 12 | # For this workflow, build-all will cause all adapters to have their image pulled and republished to the public ECR
|
@@ -86,27 +86,27 @@ jobs:
|
86 | 86 | aws-role: ${{ secrets.AWS_OIDC_IAM_ROLE_ARN }}
|
87 | 87 | aws-ecr-private: false
|
88 | 88 |
|
89 |
| - gh-release: |
90 |
| - name: GH Release |
91 |
| - runs-on: ubuntu-latest |
92 |
| - needs: |
93 |
| - - publish-adapter-images |
94 |
| - env: |
95 |
| - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token |
96 |
| - steps: |
97 |
| - - name: Checkout Repo |
98 |
| - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 |
99 |
| - - name: Get release version |
100 |
| - id: get-version |
101 |
| - run: | |
102 |
| - echo "result=$(jq -r '.version' package.json)" >> $GITHUB_OUTPUT |
103 |
| - - name: Get release body |
104 |
| - run: | |
105 |
| - # Get the PR body to use in the GH release body |
106 |
| - gh pr list --search "$(git rev-parse HEAD)" --state merged --json number,body --jq '"This release was merged in PR #" + (.[0].number | tostring) + "\n" + (.[0].body | split("\n\n\n# Releases") | .[1])' > pr_body.tmp |
107 |
| - - name: Create release |
108 |
| - uses: softprops/action-gh-release@e7a8f85e1c67a31e6ed99a94b41bd0b71bbee6b8 # v2.0.9 |
109 |
| - with: |
110 |
| - tag_name: v${{ steps.get-version.outputs.result }} |
111 |
| - name: Release v${{ steps.get-version.outputs.result }} |
112 |
| - body_path: pr_body.tmp |
| 89 | + # gh-release: |
| 90 | + # name: GH Release |
| 91 | + # runs-on: ubuntu-latest |
| 92 | + # needs: |
| 93 | + # - publish-adapter-images |
| 94 | + # env: |
| 95 | + # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token |
| 96 | + # steps: |
| 97 | + # - name: Checkout Repo |
| 98 | + # uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 |
| 99 | + # - name: Get release version |
| 100 | + # id: get-version |
| 101 | + # run: | |
| 102 | + # echo "result=$(jq -r '.version' package.json)" >> $GITHUB_OUTPUT |
| 103 | + # - name: Get release body |
| 104 | + # run: | |
| 105 | + # # Get the PR body to use in the GH release body |
| 106 | + # gh pr list --search "$(git rev-parse HEAD)" --state merged --json number,body --jq '"This release was merged in PR #" + (.[0].number | tostring) + "\n" + (.[0].body | split("\n\n\n# Releases") | .[1])' > pr_body.tmp |
| 107 | + # - name: Create release |
| 108 | + # uses: softprops/action-gh-release@e7a8f85e1c67a31e6ed99a94b41bd0b71bbee6b8 # v2.0.9 |
| 109 | + # with: |
| 110 | + # tag_name: v${{ steps.get-version.outputs.result }} |
| 111 | + # name: Release v${{ steps.get-version.outputs.result }} |
| 112 | + # body_path: pr_body.tmp |
0 commit comments