-
-
Notifications
You must be signed in to change notification settings - Fork 2
42 lines (37 loc) · 1.29 KB
/
copyright.yml
File metadata and controls
42 lines (37 loc) · 1.29 KB
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
# Check copyright
name: Check Copyright
on:
push:
branches:
- release/**
paths:
- cli/**
- compiler/**
workflow_dispatch:
jobs:
copyright-check:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Get branch name
id: vars
run: echo ::set-output name=short_ref::${GITHUB_REF#refs/*/}
- name: Check Copyright
uses: VinnyBabuManjaly/copyright-action@v1.0.0
with:
CopyrightString: '/*\nCopyright © 2021-2023 Compose Generator Contributors\nAll rights reserved.\n*/\n\n'
Path: 'cli, compiler'
IgnorePath: 'cli/vendor, compiler/cpp/test/test-files, compiler/java/src/test'
FileType: '.go, .cpp, .h, .java'
- name: Create Pull Request
uses: peter-evans/create-pull-request@v7
with:
token: ${{ secrets.GITHUB_TOKEN }}
base: ${{ steps.vars.outputs.short_ref }}
title: Update copyright notice
body: Automated update of copyright notice, generated by the [check copyright](https://github.com/compose-generator/ccom/actions/workflows/copyright.yml) workflow.
labels: documentation
assignees: marcauberer
env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: true