|
7 | 7 | default: '16' |
8 | 8 | required: false |
9 | 9 | type: string |
10 | | - go-version: |
11 | | - description: go version |
12 | | - required: true |
13 | | - type: string |
14 | 10 | upstream: |
15 | 11 | description: Upstream repo path in owner/repo format |
16 | 12 | required: true |
|
82 | 78 | - name: Find github org name from repo name |
83 | 79 | id: org |
84 | 80 | run: | |
85 | | - echo "upstream=$(dirname ${{ inputs.upstream }})" >> $GITHUB_OUTPUT |
86 | | - echo "downstream=$(dirname ${{ inputs.downstream }})" >> $GITHUB_OUTPUT |
87 | | - echo "sandbox=$(dirname ${{ inputs.sandbox }})" >> $GITHUB_OUTPUT |
| 81 | + { |
| 82 | + echo "upstream=$(dirname ${{ inputs.upstream }})" |
| 83 | + echo "downstream=$(dirname ${{ inputs.downstream }})" |
| 84 | + echo "sandbox=$(dirname ${{ inputs.sandbox }})" |
| 85 | + } >> "$GITHUB_OUTPUT" |
88 | 86 | DOWNSTREAM_VERSION=$(curl -sL "https://raw.githubusercontent.com/${{ inputs.downstream }}/${{ inputs.downstream-branch }}/VERSION") |
89 | 87 | if [[ "${DOWNSTREAM_VERSION}" =~ ^$|"404: Not Found" ]]; then |
90 | 88 | # Strip the trailing URL from the expression. |
@@ -125,7 +123,7 @@ jobs: |
125 | 123 | echo "::notice::downstream ahead" |
126 | 124 | exit 0 |
127 | 125 | fi |
128 | | - - uses: actions/checkout@v2 |
| 126 | + - uses: actions/checkout@v4 |
129 | 127 | with: |
130 | 128 | repository: ${{ inputs.downstream }} |
131 | 129 | fetch-depth: 0 |
@@ -177,10 +175,10 @@ jobs: |
177 | 175 | echo "$version_from_tag" > VERSION |
178 | 176 | git add VERSION |
179 | 177 | git diff --cached --exit-code || git commit -s -m "[bot] add VERSION file with ${version_from_tag}" |
180 | | - - uses: actions/setup-go@v2 |
| 178 | + - uses: actions/setup-go@v5 |
181 | 179 | with: |
182 | | - go-version: ${{ inputs.go-version }} |
183 | | - - uses: actions/setup-node@v2 |
| 180 | + go-version-file: go.mod |
| 181 | + - uses: actions/setup-node@v4 |
184 | 182 | with: |
185 | 183 | node-version: ${{ inputs.node-version }} |
186 | 184 | - name: Remove dependabot configuration |
@@ -208,15 +206,15 @@ jobs: |
208 | 206 | - name: Get auth token to create pull request for ${{ inputs.downstream }} |
209 | 207 | if: github.event_name != 'pull_request' |
210 | 208 | id: pr |
211 | | - uses: getsentry/action-github-app-token@v1 |
| 209 | + uses: getsentry/action-github-app-token@v3 |
212 | 210 | with: |
213 | 211 | app_id: ${{ secrets.pr-app-id }} |
214 | 212 | private_key: ${{ secrets.pr-app-private-key }} |
215 | 213 | scope: ${{ steps.org.outputs.downstream }} |
216 | 214 | - name: Get auth token to push to ${{ inputs.sandbox }} |
217 | 215 | if: github.event_name != 'pull_request' |
218 | 216 | id: cloner |
219 | | - uses: getsentry/action-github-app-token@v1 |
| 217 | + uses: getsentry/action-github-app-token@v3 |
220 | 218 | with: |
221 | 219 | app_id: ${{ secrets.cloner-app-id }} |
222 | 220 | private_key: ${{ secrets.cloner-app-private-key }} |
|
0 commit comments