Skip to content

try to fix release

try to fix release #45

Workflow file for this run

name: Files sync
on:
push:
branches:
- master
jobs:
sync-files:
if: github.repository == 'micronaut-projects/micronaut-project-template'
runs-on: ubuntu-latest
strategy:
fail-fast: false
max-parallel: 3
matrix:
repo:
- acme
- aot
- aws
- azure
- cache
- cassandra
- coherence
- core
- couchbase
- data
- discovery-client
- elasticsearch
- flyway
- gcp
- gradle-plugin
- graphql
- groovy
- grpc
- hibernate-validator
- ignite
- jackson-xml
- jaxrs
- jms
- jmx
- kafka
- kotlin
- kubernetes
- liquibase
- micrometer
- mongodb
- mqtt
- multitenancy
- nats
- neo4j
- openapi
- oracle-cloud
- picocli
- problem-json
- pulsar
- r2dbc
- rabbitmq
- reactor
- redis
- rss
- rxjava3
- security
- serialization
- servlet
- spring
- sql
- test
- views
steps:
- name: Checkout source
uses: actions/checkout@v2
with:
path: source
- name: Checkout target - default branch
uses: actions/checkout@v2
with:
repository: micronaut-projects/micronaut-${{ matrix.repo }}
path: target
fetch-depth: 0
token: ${{ secrets.GH_TOKEN }}
- name: Determine current branch
id: branch
working-directory: target
run: |
branch=$(git rev-parse --abbrev-ref HEAD)
echo "Current branch: ${branch}"
echo ::set-output name=branch::${branch}
- name: Sync workflows
run: |
mkdir -p target/.github/workflows/
rsync --verbose --verbose --archive -F "source/.github/workflows/" "target/.github/workflows/"
- name: Copy files from source to target branches
run: |
while IFS= read -r file; do
dest="$(dirname $file)"
mkdir -p target/$dest
cp -r source/$file target/$dest
done <<< "$FILES"
env:
FILES: |-
.github/dependabot.yml
gradle/*
gradlew*
.gitignore
MAINTAINING.md
SECURITY.md
LICENSE
config/HEADER
config/spotless.license.java
config/checkstyle/checkstyle.xml
config/checkstyle/suppressions.xml
.github/ISSUE_TEMPLATE/bug_report.yaml
.github/ISSUE_TEMPLATE/config.yml
.github/ISSUE_TEMPLATE/new_feature.yaml
.github/ISSUE_TEMPLATE/other.yaml
- name: Create Pull Request - ${{ steps.branch.outputs.branch }}
uses: peter-evans/[email protected]
with:
path: target
token: ${{ secrets.GH_TOKEN }}
committer: micronaut-build <${{ secrets.MICRONAUT_BUILD_EMAIL }}>
author: micronaut-build <${{ secrets.MICRONAUT_BUILD_EMAIL }}>
commit-message: Update common files
title: "[${{ matrix.repo }}] Update common files for branch ${{ steps.branch.outputs.branch }}"
body: Update common files
labels: "relates-to: build"
branch: sync-files-${{ steps.branch.outputs.branch }}
base: ${{ steps.branch.outputs.branch }}