Skip to content

Commit 7a8adf9

Browse files
committed
fix: add dev tag
1 parent 450b239 commit 7a8adf9

File tree

2 files changed

+70
-0
lines changed

2 files changed

+70
-0
lines changed

.github/workflows/add-dev-tag.yml

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
name: Add dev tags for release
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
core-version:
7+
description: 'Core version'
8+
required: true
9+
type: string
10+
plugin-interface-version:
11+
description: 'Plugin interface version'
12+
required: true
13+
type: string
14+
new-release-for-plugin-interface:
15+
description: 'New release for plugin interface'
16+
required: true
17+
type: boolean
18+
postgres-plugin-version:
19+
description: 'Postgres plugin version'
20+
required: true
21+
new-release-for-postgres-plugin:
22+
description: 'New release for postgres plugin'
23+
required: true
24+
type: boolean
25+
26+
jobs:
27+
dependency-branches:
28+
name: Dependency Branches
29+
runs-on: ubuntu-latest
30+
outputs:
31+
branches: ${{ steps.result.outputs.branches }}
32+
33+
steps:
34+
- uses: actions/checkout@v4
35+
- uses: supertokens/get-core-dependencies-action@main
36+
id: result
37+
with:
38+
run-for: add-dev-tag
39+
core-version: ${{ github.event.inputs.core-version }}
40+
plugin-interface-version: ${{ github.event.inputs.plugin-interface-version }}
41+
postgres-plugin-version: ${{ github.event.inputs.postgres-plugin-version }}
42+
add-dev-tag:
43+
runs-on: ubuntu-latest
44+
steps:
45+
- name: Set up JDK 21.0.7
46+
uses: actions/setup-java@v2
47+
with:
48+
java-version: 21.0.7
49+
distribution: zulu
50+
- uses: actions/checkout@v2
51+
with:
52+
repository: supertokens/supertokens-root
53+
path: ./supertokens-root
54+
ref: feat/java_gradle_upgrade
55+
- uses: actions/checkout@v2
56+
with:
57+
path: ./supertokens-root/supertokens-core
58+
ref: ${{ fromJson(needs.dependency-branches.outputs.branches)['core'] }}
59+
- uses: actions/checkout@v2
60+
with:
61+
repository: supertokens/supertokens-plugin-interface
62+
path: ./supertokens-root/supertokens-plugin-interface
63+
ref: ${{ fromJson(needs.dependency-branches.outputs.branches)['plugin-interface'] }}
64+
- uses: actions/checkout@v2
65+
with:
66+
repository: supertokens/supertokens-postgresql-plugin
67+
path: ./supertokens-root/supertokens-postgresql-plugin
68+
ref: ${{ fromJson(needs.dependency-branches.outputs.branches)['postgresql'] }}

.github/workflows/unit-test.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ jobs:
1414
- uses: actions/checkout@v4
1515
- uses: supertokens/get-core-dependencies-action@main
1616
id: result
17+
with:
18+
run-for: PR
1719

1820
test:
1921
name: Unit tests

0 commit comments

Comments
 (0)