-
Notifications
You must be signed in to change notification settings - Fork 1
45 lines (37 loc) · 1.16 KB
/
publish-pipelines.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
# Publish Pipelines generated when project is tagged
name: Publish Pipelines generated
on:
workflow_dispatch:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: write # release changes require contents write
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 17
cache: maven
- name: Build with Maven
run: mvn -B clean package
- name: Run the builder application
run: |
java -jar target/quarkus-app/quarkus-run.jar -o generated -c configurations/tekton/simple-job-embedded-script-cfg.yaml
- name: Check Pipeline generated
run: |
ls -la generated/
- name: Push the README file with snippet
run: |
git config user.name "${{ github.actor }}"
git config user.email "${{ github.actor_id }}+${{ github.actor }}@users.noreply.github.com"
set +e
git add generated/*
git commit -m "New \"pipelines\" yaml file(s) generated"
git push