diff --git a/.github/workflows/auto-pull-request-create.yml b/.github/workflows/auto-pull-request-create.yml index e7b56cf..288bd49 100644 --- a/.github/workflows/auto-pull-request-create.yml +++ b/.github/workflows/auto-pull-request-create.yml @@ -9,9 +9,10 @@ on: - dependabot/** permissions: - contents: read + contents: write packages: write pull-requests: write + issues: write jobs: call: diff --git a/.github/workflows/auto-release-create.yml b/.github/workflows/auto-release-create.yml index a032b2e..4c783a8 100644 --- a/.github/workflows/auto-release-create.yml +++ b/.github/workflows/auto-release-create.yml @@ -21,7 +21,8 @@ on: permissions: contents: write packages: write - pull-requests: read + pull-requests: write + issues: write jobs: call: diff --git a/.github/workflows/manual-e2e-validate.yml b/.github/workflows/manual-e2e-validate.yml new file mode 100644 index 0000000..eb208c4 --- /dev/null +++ b/.github/workflows/manual-e2e-validate.yml @@ -0,0 +1,32 @@ +name: (Manual) E2E Validate + +on: + workflow_dispatch: + inputs: + mode: + description: Validation mode + required: false + default: ref + type: choice + options: + - ref + - image + image_tag: + description: Image tag used when mode=image (for example v1.2.3-test or v1.2.3-rc) + required: false + default: "" + type: string + +permissions: + contents: write + pull-requests: write + issues: write + packages: read + +jobs: + e2e: + uses: devops-infra/triglav/.github/workflows/e2e-action-pull-request.yml@master + with: + mode: ${{ inputs.mode }} + image_tag: ${{ inputs.image_tag }} + secrets: inherit diff --git a/.github/workflows/manual-release-branch-prepare.yml b/.github/workflows/manual-release-branch-prepare.yml index b06ea09..1a302ec 100644 --- a/.github/workflows/manual-release-branch-prepare.yml +++ b/.github/workflows/manual-release-branch-prepare.yml @@ -27,6 +27,7 @@ permissions: contents: write packages: write pull-requests: write + issues: write jobs: call: diff --git a/README.md b/README.md index b1ea16e..81ab782 100644 --- a/README.md +++ b/README.md @@ -174,7 +174,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout repository - uses: actions/checkout@v5 + uses: actions/checkout@v6 - name: Create pull request uses: devops-infra/action-pull-request@v1.2.0 @@ -202,7 +202,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout repository - uses: actions/checkout@v5 + uses: actions/checkout@v6 with: fetch-depth: 0 path: repo @@ -244,7 +244,7 @@ jobs: action-pull-request: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v5 + - uses: actions/checkout@v6 - uses: devops-infra/action-pull-request@v1.2.0 id: Pin patch version @@ -271,6 +271,29 @@ If you have any questions or need help, please: - ๐Ÿ“ Create an [issue](https://github.com/devops-infra/action-pull-request/issues) - ๐ŸŒŸ Star this repository if you find it useful! +## ๐Ÿงช End-to-End Validation +Use the manual workflow `.github/workflows/manual-e2e-validate.yml` to validate this action against the centralized E2E repository. + +- `mode=ref` validates ref-oriented E2E paths against stable pinned action refs. +- `mode=image` is wired but currently placeholder-only in the central E2E workflow for this action. + +CI/CD automation also runs these E2E checks automatically: + +- Pull requests: E2E validation runs through reusable org workflows. +- Release branch prepare: E2E validation runs against release candidate refs. +- Release create: E2E validation runs against production release refs. + +Example trigger inputs: + +```text +mode=ref +``` + +```text +mode=image +image_tag=v1.2.3-test +``` + ## Forking To publish images from a fork, set these variables so Task uses your registry identities: `DOCKER_USERNAME`, `DOCKER_ORG_NAME`, `GITHUB_USERNAME`, `GITHUB_ORG_NAME`.