diff options
author | Viacheslav Hletenko <v.gletenko@vyos.io> | 2024-09-14 12:47:59 +0300 |
---|---|---|
committer | Viacheslav Hletenko <v.gletenko@vyos.io> | 2024-09-14 12:47:59 +0300 |
commit | bdaaa78508d9699bbcb16b6d57aa1ce58e9cbd9a (patch) | |
tree | 32ecfcd738e4ced6036959569309940ae93eb8ad | |
parent | afbd2ed0b6dea2a8b19c7887a7268d24a0ef4b8e (diff) | |
download | vyatta-bash-bdaaa78508d9699bbcb16b6d57aa1ce58e9cbd9a.tar.gz vyatta-bash-bdaaa78508d9699bbcb16b6d57aa1ce58e9cbd9a.zip |
T6674: Action add trigger workflow to rebuild package
-rw-r--r-- | .github/workflows/trigger-rebuild-repo-package.yml | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/.github/workflows/trigger-rebuild-repo-package.yml b/.github/workflows/trigger-rebuild-repo-package.yml new file mode 100644 index 0000000..37ec832 --- /dev/null +++ b/.github/workflows/trigger-rebuild-repo-package.yml @@ -0,0 +1,32 @@ +name: Trigger to build a deb package from repo + +on: + pull_request_target: + types: + - closed + branches: + - current + workflow_dispatch: + +jobs: + get_repo_name: + runs-on: ubuntu-latest + outputs: + PACKAGE_NAME: ${{ steps.package_name.outputs.PACKAGE_NAME }} + steps: + - name: Set variables + id: package_name + run: | + echo "PACKAGE_NAME=$(basename ${{ github.repository }})" >> $GITHUB_OUTPUT + + trigger-build: + needs: get_repo_name + uses: vyos/.github/.github/workflows/trigger-rebuild-repo-package.yml@current + with: + branch: ${{ github.ref_name }} + package_name: ${{ needs.get_repo_name.outputs.PACKAGE_NAME }} + secrets: + REMOTE_OWNER: ${{ secrets.REMOTE_OWNER }} + REMOTE_REUSE_REPO: ${{ secrets.REMOTE_REUSE_REPO }} + GPG_KEY_ID: ${{ secrets.GPG_KEY_ID }} + PAT: ${{ secrets.PAT }} |