forked from quarkusio/quarkus
-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (53 loc) · 1.72 KB
/
jakarta-rewrite.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
name: Jakarta Rewrite
on:
workflow_dispatch:
schedule:
# 4am every weekday + saturday
- cron: '0 4 * * 1-6'
jobs:
rewrite:
runs-on: ubuntu-latest
name: Rewrite to Jakarta
if: github.repository == 'quarkusio/quarkus'
steps:
- uses: actions/checkout@v2
- name: Set up JDK 11
uses: actions/setup-java@v2
with:
distribution: temurin
java-version: 11
cache: maven
- name: Configure Git author
run: |
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
- name: Install JBang
run: |
curl -Ls https://sh.jbang.dev | bash -s - app setup
shell: bash
- name: Transform sources
run: |
export PATH="$HOME/.jbang/bin:$PATH"
git checkout -b temp-jakarta-rewrite
REWRITE_TESTS_CONTAINERS=true ./jakarta/transform.sh
git add .
git commit -m 'Transform sources to Jakarta'
shell: bash
- name: Push changes to jakarta-rewrite
uses: ad-m/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
force: true
branch: jakarta-rewrite
- name: Report status
if: "always() && github.repository == 'quarkusio/quarkus'"
shell: bash
run: |
curl -Ls https://sh.jbang.dev | bash -s - app setup
~/.jbang/bin/jbang .github/NativeBuildReport.java \
issueNumber=24396 \
runId=${{ github.run_id }} \
status=${{ job.status }} \
token=${{ secrets.GITHUB_API_TOKEN }} \
issueRepo=${{ github.repository }} \
thisRepo=${{ github.repository }}