From 2c2e8b0f47f841a6f1cd753f049dc562ab89bab2 Mon Sep 17 00:00:00 2001 From: Taylor Smock Date: Fri, 20 Oct 2023 06:20:45 -0600 Subject: [PATCH] Add v2 workflows Signed-off-by: Taylor Smock --- .github/workflows/ant-release.yml | 15 +++++++++++++++ .github/workflows/ant.yml | 25 +++++++++++++++++++++++++ .github/workflows/reports.yaml | 13 +++++++++++++ 3 files changed, 53 insertions(+) create mode 100644 .github/workflows/ant-release.yml create mode 100644 .github/workflows/ant.yml create mode 100644 .github/workflows/reports.yaml diff --git a/.github/workflows/ant-release.yml b/.github/workflows/ant-release.yml new file mode 100644 index 0000000..8469ae0 --- /dev/null +++ b/.github/workflows/ant-release.yml @@ -0,0 +1,15 @@ +name: Release + +on: + release: + types: [created] + +jobs: + call-workflow: + uses: JOSM/JOSMPluginAction/.github/workflows/ant.yml@v2 + with: + josm-revision: "r18173" + secrets: inherit + permissions: + contents: write + diff --git a/.github/workflows/ant.yml b/.github/workflows/ant.yml new file mode 100644 index 0000000..c3c3feb --- /dev/null +++ b/.github/workflows/ant.yml @@ -0,0 +1,25 @@ +name: Java CI + +on: + push: + branches: + - master + - $default-branch + - $protected-branches + pull_request: + branches: + - master + - $default-branch + schedule: + - cron: "43 19 * * 3" + workflow_dispatch: + +jobs: + call-workflow: + strategy: + matrix: + josm-revision: ["", "r18173"] + uses: JOSM/JOSMPluginAction/.github/workflows/ant.yml@v2 + with: + josm-revision: ${{ matrix.josm-revision }} + secrets: inherit diff --git a/.github/workflows/reports.yaml b/.github/workflows/reports.yaml new file mode 100644 index 0000000..43794f4 --- /dev/null +++ b/.github/workflows/reports.yaml @@ -0,0 +1,13 @@ +name: Publish reports + +on: + workflow_run: + workflows: [Java CI] + types: [completed] + +permissions: + checks: write + +jobs: + call-workflow: + uses: JOSM/JOSMPluginAction/.github/workflows/reports.yaml@v2