File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -139,17 +139,23 @@ jobs:
139
139
if : github.event_name == 'push' && github.ref == 'refs/heads/main'
140
140
141
141
mark-previous-version :
142
- needs : [build, meta]
142
+ needs : [build, meta, automerge ]
143
143
runs-on : ubuntu-latest
144
144
145
- if : github.event_name == 'push' && github.ref == 'refs/heads/main' && needs.build.outputs.current-version != needs.meta.outputs.latest-version
145
+ if : |
146
+ (
147
+ (github.event_name == 'push' && github.ref == 'refs/heads/main')
148
+ || (github.event_name == 'pull_request' && github.event.pull_request.user.login == 'dependabot[bot]')
149
+ )
150
+ && needs.build.outputs.current-version != needs.meta.outputs.latest-version
151
+ && !cancelled()
146
152
147
153
permissions :
148
154
contents : write
149
155
150
156
env :
151
157
TAG : v${{ needs.meta.outputs.latest-version }}
152
- COMMIT : ${{ github.event.before }}
158
+ COMMIT : ${{ github.event.pull_request.base.ref || github.event. before }} # either the PR base ref or previous commit in the branch
153
159
GH_REPOSITORY : ${{ github.repository }}
154
160
155
161
steps :
You can’t perform that action at this time.
0 commit comments