From c725b7e2b05793df47549b8d0915c018db8db2ba Mon Sep 17 00:00:00 2001 From: kdoroszko-splunk <147069837+kdoroszko-splunk@users.noreply.github.com> Date: Wed, 24 Jan 2024 11:09:38 +0100 Subject: [PATCH] chore: changes for tests automation (#223) THis PR introduces initial version of https://splunk.atlassian.net/browse/ADDON-67703 implementation. Correlated with: https://github.com/splunk/addonfactory-repository-template/pull/528 --- .github/workflows/build-test-branch.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/build-test-branch.yml diff --git a/.github/workflows/build-test-branch.yml b/.github/workflows/build-test-branch.yml new file mode 100644 index 000000000..5f719dcdf --- /dev/null +++ b/.github/workflows/build-test-branch.yml @@ -0,0 +1,24 @@ +name: "build-test-branch" +on: + workflow_dispatch: + inputs: + branchname: + description: "name of a branch that will be checked out in template repository" + required: true + type: string + default: ${{ github.ref_name }} + +permissions: + contents: write + packages: read + pull-requests: read + statuses: write + +jobs: + run-template-rollout: + uses: splunk/addonfactory-repository-template/.github/workflows/sync.yaml@${{ inputs.branchname }} + with: + repositories: "test-addonfactory-repo" + branchname: ${{ inputs.branchname }} + secrets: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}