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 1/2] 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 }} From 57dea550b4e8b977d4911452a427103fc0856ff4 Mon Sep 17 00:00:00 2001 From: kdoroszko-splunk <147069837+kdoroszko-splunk@users.noreply.github.com> Date: Wed, 24 Jan 2024 11:14:58 +0100 Subject: [PATCH 2/2] Update and rename build-test-branch.yml to branch-test-release.yml --- .../{build-test-branch.yml => branch-test-release.yml} | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename .github/workflows/{build-test-branch.yml => branch-test-release.yml} (95%) diff --git a/.github/workflows/build-test-branch.yml b/.github/workflows/branch-test-release.yml similarity index 95% rename from .github/workflows/build-test-branch.yml rename to .github/workflows/branch-test-release.yml index 5f719dcdf..ba2a2270c 100644 --- a/.github/workflows/build-test-branch.yml +++ b/.github/workflows/branch-test-release.yml @@ -1,4 +1,4 @@ -name: "build-test-branch" +name: "branch-test-release" on: workflow_dispatch: inputs: