| # Copyright 2021 SkyWater PDK Authors | |
| # | |
| # 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 | |
| # | |
| # https://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. | |
| # | |
| # SPDX-License-Identifier: Apache-2.0 | |
| name: 'Skywater PDK Libraries Pull Request Merger on Release Branches' | |
| description: 'This is a Pull Request Merger Action that works on repos with release branch structure.' | |
| runs: | |
| using: "composite" | |
| steps: | |
| - name: Get External Path Name | |
| run: echo "EXTERNAL_PATH=$(cd $GITHUB_WORKSPACE/../ && pwd)" >> $GITHUB_ENV | |
| shell: bash | |
| - name: Run The Pull Request Merger | |
| run: | | |
| cd $GITHUB_WORKSPACE | |
| python3 ${{ github.action_path }}/modules-pr-backporter/library_multi_pull_requests.py 1 $GITHUB_REPOSITORY 2 ${{ github.token }} 3 $EXTERNAL_PATH | |
| shell: bash |