Skip to content

Commit 1d11535

Browse files
authored
Allow dispatching compatibility-tests workflow from upload-artifacts (#292)
1 parent 5522cd1 commit 1d11535

File tree

3 files changed

+28
-3
lines changed

3 files changed

+28
-3
lines changed

.github/workflows/compatibility-tests.yaml

+5-3
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
name: compatibility-tests
22

33
on:
4-
push:
5-
tags:
6-
- '*'
74
workflow_dispatch:
5+
repository_dispatch:
6+
types: [compatibility-tests]
87

98
jobs:
109
test-compatibility:
@@ -56,6 +55,9 @@ jobs:
5655
PREVIOUS_VERSION="0.5.30"
5756
fi
5857
58+
echo "Current version is $NEW_VERSION"
59+
echo "Will be tested for compatibility from $PREVIOUS_VERSION"
60+
5961
echo "NEW_VERSION=$NEW_VERSION" >> $GITHUB_ENV
6062
echo "PREVIOUS_VERSION=$PREVIOUS_VERSION" >> $GITHUB_ENV
6163

.github/workflows/tmp-workflow.yaml

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: tmp
2+
3+
on:
4+
workflow_dispatch:
5+
6+
permissions:
7+
contents: write
8+
9+
jobs:
10+
tag-and-release:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v4
14+
15+
- name: dispatch-compatibility-tests
16+
uses: peter-evans/repository-dispatch@v3
17+
with:
18+
event-type: compatibility-tests

.github/workflows/upload-artifacts.yml

+5
Original file line numberDiff line numberDiff line change
@@ -131,3 +131,8 @@ jobs:
131131
tag_name: ${{ env.VERSION }}
132132
env:
133133
GITHUB_TOKEN: ${{ github.token }}
134+
135+
- name: dispatch-compatibility-tests
136+
uses: peter-evans/repository-dispatch@v3
137+
with:
138+
event-type: compatibility-tests

0 commit comments

Comments
 (0)