diff --git a/.github/render-workflows.sh b/.github/render-workflows.sh index 5bff62d430..9dc9aab5ec 100755 --- a/.github/render-workflows.sh +++ b/.github/render-workflows.sh @@ -53,7 +53,7 @@ cat <<'SCRIPT_END' | docker run -i --rm \ -v ${volumesRoot}/workflow_templates:/in/workflow_templates \ -v ${volumesRoot}/workflows:/out/workflows \ --entrypoint=ash \ - hairyhenderson/gomplate:v3.10.0-alpine - || dockerExit=1 + hairyhenderson/gomplate:v3.11.7-alpine - || dockerExit=1 # Render each file in workflow_templates # directory and copy to /out/workflows diff --git a/.github/workflow_templates/autolabel.yaml b/.github/workflow_templates/autolabel.yml similarity index 100% rename from .github/workflow_templates/autolabel.yaml rename to .github/workflow_templates/autolabel.yml diff --git a/.github/workflow_templates/pr-auto-asigner.yml b/.github/workflow_templates/pr-auto-asigner.yml new file mode 100644 index 0000000000..429ffe7af2 --- /dev/null +++ b/.github/workflow_templates/pr-auto-asigner.yml @@ -0,0 +1,29 @@ +# Copyright 2024 Flant JSC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +name: "Pull Request Auto Assigner" +on: + pull_request_target: + types: + - opened + - reopened + +permissions: + pull-requests: write + +jobs: + assign-author: + runs-on: ubuntu-latest + steps: + - uses: toshimaru/auto-author-assign@v2.1.0 diff --git a/.github/workflows/autolabel.yaml b/.github/workflows/autolabel.yml similarity index 100% rename from .github/workflows/autolabel.yaml rename to .github/workflows/autolabel.yml diff --git a/.github/workflows/pr-auto-asigner.yml b/.github/workflows/pr-auto-asigner.yml new file mode 100644 index 0000000000..62b231b939 --- /dev/null +++ b/.github/workflows/pr-auto-asigner.yml @@ -0,0 +1,33 @@ +# +# THIS FILE IS GENERATED, PLEASE DO NOT EDIT. +# + +# Copyright 2024 Flant JSC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +name: "Pull Request Auto Assigner" +on: + pull_request_target: + types: + - opened + - reopened + +permissions: + pull-requests: write + +jobs: + assign-author: + runs-on: ubuntu-latest + steps: + - uses: toshimaru/auto-author-assign@v2.1.0