Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PP-12385: Add github action to comment on the PR with diffs of YML #1091

Closed
wants to merge 5 commits into from

Conversation

jfharden
Copy link
Contributor

@jfharden jfharden commented Mar 7, 2024

No description provided.

Copy link

github-actions bot commented Mar 7, 2024

YAML diff vs master for `detect-secrets.yml`:
--- master/ci/pkl-pipelines/detect-secrets.yml	1970-01-01 00:00:00.000000000 +0000
+++ pr/ci/pkl-pipelines/detect-secrets.yml	2024-03-07 18:11:43.362214922 +0000
@@ -0,0 +1,96 @@
+jobs:
+- name: update-pipeline
+  plan:
+  - get: pipeline-source
+    trigger: true
+  - task: generate-yaml-from-pkl
+    config:
+      platform: linux
+      image_resource:
+        type: registry-image
+        source:
+          repository: governmentdigitalservice/pay-concourse-runner
+          tag: latest
+      inputs:
+      - name: pipeline-source
+      outputs:
+      - name: pipeline-source
+      run:
+        path: ash
+        args:
+        - -c
+        - pkl eval 'detect-secrets.pkl' > 'detect-secrets.yaml'
+        dir: pipeline-source/ci/pkl-pipelines/
+  - set_pipeline: detect-secrets-test
+    file: pipeline-source/ci/pkl-pipelines/detect-secrets.yaml
+- name: build-and-push-detect-secrets
+  plan:
+  - in_parallel:
+    - get: detect-secrets-src
+      trigger: true
+    - get: pay-ci
+  - task: generate-docker-creds-config
+    file: pay-ci/ci/tasks/generate-docker-config-file.yml
+    params:
+      USERNAME: ((docker-username))
+      PASSWORD: ((docker-password))
+      EMAIL: ((docker-email))
+  - task: build
+    config:
+      platform: linux
+      image_resource:
+        type: registry-image
+        source:
+          repository: concourse/oci-build-task
+      inputs:
+      - name: detect-secrets-src
+      outputs:
+      - name: image
+      run:
+        path: build
+    privileged: true
+    params:
+      CONTEXT: detect-secrets-src/ci/docker/detect-secrets
+      DOCKER_CONFIG: docker_creds
+  - put: detect-secrets-registry-image
+    params:
+      image: image/image.tar
+resources:
+- name: pipeline-source
+  type: git
+  source:
+    uri: https://github.com/alphagov/pay-ci
+    branch: pp-12343/example-pr-adding-new-pipeline
+    paths:
+    - ci/pkl-pipelines/detect-secrets.pkl
+    - ci/pkl-pipelines/common/**
+  icon: github
+- name: pay-ci
+  type: git
+  source:
+    uri: https://github.com/alphagov/pay-ci
+    branch: master
+  icon: github
+- name: detect-secrets-src
+  type: git
+  source:
+    uri: https://github.com/alphagov/pay-ci
+    branch: master
+    paths:
+    - ci/docker/detect-secrets/*
+  icon: github
+- name: detect-secrets-registry-image
+  type: registry-image
+  source:
+    repository: governmentdigitalservice/pay-detect-secrets
+    tag: latest
+    username: ((dockerhub-username))
+    password: ((dockerhub-password))
+  icon: docker
+groups:
+- name: detect-secrets
+  jobs:
+  - build-and-push-detect-secrets
+- name: update-pipeline
+  jobs:
+  - update-pipeline

@alphagov-pay-ci-concourse

No YAML differences detected between PR and master pkl files

@alphagov-pay-ci-concourse
Diff of ./pkl-pipeline-changes.yml
--- pay-ci/ci/pkl-pipelines/pay-dev/pkl-pipeline-changes.yml
+++ pkl-pipeline-pr/ci/pkl-pipelines/pay-dev/pkl-pipeline-changes.yml
@@ -0,0 +1,63 @@
+jobs:
+- name: comment-pipeline-changes-on-pr
+  plan:
+  - in_parallel:
+    - get: pkl-pipeline-pr
+      trigger: true
+      version: every
+    - get: pay-ci
+  - put: pkl-pipeline-pr
+    params:
+      path: pkl-pipeline-pr
+      status: pending
+      context: test
+    get_params:
+      skip_download: true
+  - on_success:
+      put: pkl-pipeline-pr
+      params:
+        path: pkl-pipeline-pr
+        status: success
+        context: test
+      get_params:
+        skip_download: true
+    on_failure:
+      put: pkl-pipeline-pr
+      params:
+        path: pkl-pipeline-pr
+        status: failed
+        context: test
+      get_params:
+        skip_download: true
+    task: comment-on-pr-with-yml-and-concourse-diffs
+    file: pay-ci/ci/tasks/comment-on-pr-with-pkl-pipeline-diffs.yml
+    params:
+      GITHUB_TOKEN: ((github-access-token))
+      CONCOURSE_TEAM: pay-dev
+      FLY_PASSWORD: ((readonly_local_user_password))
+resources:
+- name: pay-ci
+  type: git
+  source:
+    uri: https://github.com/alphagov/pay-ci
+    branch: master
+  icon: github
+- name: pkl-pipeline-pr
+  type: git
+  source:
+    disable_forks: true
+    repository: alphagov/pay-ci
+    access-token: ((github-access-token))
+    paths:
+    - ci/pkl-pipelines/
+  icon: github
+resource_types:
+- name: pull-request
+  type: registry-image
+  source:
+    respository: teliaoss/github-pr-resource
+    tag: v0.23.0
+groups:
+- name: comment-pipeline-changes-on-pr
+  jobs:
+  - comment-pipeline-changes-on-pr
Concourse set-pipeline dry-run for `./pkl-pipeline-changes.yml`
resources:
  resource pkl-pipeline-pr has changed:
  icon: github
  name: pkl-pipeline-pr
  source:
  ��-   access_token: ((github-access-token))
  ��+   access-token: ((github-access-token))
    disable_forks: true
    paths:
  ��-   - ci/pkl-pipelines/**/*.pkl
  ��+   - ci/pkl-pipelines/
    repository: alphagov/pay-ci
  ��- type: pull-request
  ��+ type: git
  
resource types:
  resource type pull-request has changed:
  name: pull-request
  source:
  ��-   repository: teliaoss/github-pr-resource
  ��+   respository: teliaoss/github-pr-resource
    tag: v0.23.0
  type: registry-image
  
jobs:
  job comment-pipeline-changes-on-pr has changed:
  name: comment-pipeline-changes-on-pr
  plan:
  - in_parallel:
      steps:
      - get: pkl-pipeline-pr
        trigger: true
        version: every
      - get: pay-ci
  ��- - params:
  ��+ - get_params:
  ��+     skip_download: true
  ��+   params:
      context: test
      path: pkl-pipeline-pr
      status: pending
    put: pkl-pipeline-pr
  ��- - file: pkl-pipeline-pr/ci/tasks/comment-on-pr-with-pkl-pipeline-diffs.yml
  ��+ - file: pay-ci/ci/tasks/comment-on-pr-with-pkl-pipeline-diffs.yml
    on_failure:
      get_params:
        skip_download: true
      params:
        context: test
        path: pkl-pipeline-pr
        status: failed
      put: pkl-pipeline-pr
    on_success:
      get_params:
        skip_download: true
      params:
        context: test
        path: pkl-pipeline-pr
        status: success
      put: pkl-pipeline-pr
    params:
      CONCOURSE_TEAM: pay-dev
      FLY_PASSWORD: ((readonly_local_user_password))
      GITHUB_TOKEN: ((github-access-token))
    task: comment-on-pr-with-yml-and-concourse-diffs
  
�[1mpipeline name: �[0mpkl-pipeline-changes

Dry-run mode was set, exiting.

@alphagov-pay-ci-concourse
Diff of ./pkl-pipeline-changes.yml
--- pay-ci/ci/pkl-pipelines/pay-dev/pkl-pipeline-changes.yml
+++ pkl-pipeline-pr/ci/pkl-pipelines/pay-dev/pkl-pipeline-changes.yml
@@ -0,0 +1,63 @@
+jobs:
+- name: comment-pipeline-changes-on-pr
+  plan:
+  - in_parallel:
+    - get: pkl-pipeline-pr
+      trigger: true
+      version: every
+    - get: pay-ci
+  - put: pkl-pipeline-pr
+    params:
+      path: pkl-pipeline-pr
+      status: pending
+      context: test
+    get_params:
+      skip_download: true
+  - on_success:
+      put: pkl-pipeline-pr
+      params:
+        path: pkl-pipeline-pr
+        status: success
+        context: test
+      get_params:
+        skip_download: true
+    on_failure:
+      put: pkl-pipeline-pr
+      params:
+        path: pkl-pipeline-pr
+        status: failed
+        context: test
+      get_params:
+        skip_download: true
+    task: comment-on-pr-with-yml-and-concourse-diffs
+    file: pay-ci/ci/tasks/comment-on-pr-with-pkl-pipeline-diffs.yml
+    params:
+      GITHUB_TOKEN: ((github-access-token))
+      CONCOURSE_TEAM: pay-dev
+      FLY_PASSWORD: ((readonly_local_user_password))
+resources:
+- name: pay-ci
+  type: git
+  source:
+    uri: https://github.com/alphagov/pay-ci
+    branch: master
+  icon: github
+- name: pkl-pipeline-pr
+  type: git
+  source:
+    disable_forks: true
+    repository: alphagov/pay-ci
+    access-token: ((github-access-token))
+    paths:
+    - ci/pkl-pipelines/
+  icon: github
+resource_types:
+- name: pull-request
+  type: registry-image
+  source:
+    respository: teliaoss/github-pr-resource
+    tag: v0.23.0
+groups:
+- name: comment-pipeline-changes-on-pr
+  jobs:
+  - comment-pipeline-changes-on-pr
Concourse set-pipeline dry-run for `./pkl-pipeline-changes.yml`
resources:
  resource pkl-pipeline-pr has changed:
  icon: github
  name: pkl-pipeline-pr
  source:
-   access_token: ((github-access-token))
+   access-token: ((github-access-token))
    disable_forks: true
    paths:
-   - ci/pkl-pipelines/**/*.pkl
+   - ci/pkl-pipelines/
    repository: alphagov/pay-ci
- type: pull-request
+ type: git
  
resource types:
  resource type pull-request has changed:
  name: pull-request
  source:
-   repository: teliaoss/github-pr-resource
+   respository: teliaoss/github-pr-resource
    tag: v0.23.0
  type: registry-image
  
jobs:
  job comment-pipeline-changes-on-pr has changed:
  name: comment-pipeline-changes-on-pr
  plan:
  - in_parallel:
      steps:
      - get: pkl-pipeline-pr
        trigger: true
        version: every
      - get: pay-ci
- - params:
+ - get_params:
+     skip_download: true
+   params:
      context: test
      path: pkl-pipeline-pr
      status: pending
    put: pkl-pipeline-pr
- - file: pkl-pipeline-pr/ci/tasks/comment-on-pr-with-pkl-pipeline-diffs.yml
+ - file: pay-ci/ci/tasks/comment-on-pr-with-pkl-pipeline-diffs.yml
    on_failure:
      get_params:
        skip_download: true
      params:
        context: test
        path: pkl-pipeline-pr
        status: failed
      put: pkl-pipeline-pr
    on_success:
      get_params:
        skip_download: true
      params:
        context: test
        path: pkl-pipeline-pr
        status: success
      put: pkl-pipeline-pr
    params:
      CONCOURSE_TEAM: pay-dev
      FLY_PASSWORD: ((readonly_local_user_password))
      GITHUB_TOKEN: ((github-access-token))
    task: comment-on-pr-with-yml-and-concourse-diffs
  
pipeline name: pkl-pipeline-changes

Dry-run mode was set, exiting.

@jfharden jfharden force-pushed the pp-12343/example-pr-adding-new-pipeline branch from f0c6778 to 7f92c4b Compare March 11, 2024 09:32
@jfharden jfharden force-pushed the pp-12385/pkl-dev-process branch 2 times, most recently from 3ffc543 to 22852df Compare March 11, 2024 09:36
@alphagov-pay-ci-concourse
Diff of ./pkl-pipeline-changes.yml
--- pay-ci/ci/pkl-pipelines/pay-dev/pkl-pipeline-changes.yml
+++ pkl-pipeline-pr/ci/pkl-pipelines/pay-dev/pkl-pipeline-changes.yml
@@ -0,0 +1,63 @@
+jobs:
+- name: comment-pipeline-changes-on-pr
+  plan:
+  - in_parallel:
+    - get: pkl-pipeline-pr
+      trigger: true
+      version: every
+    - get: pay-ci
+  - put: pkl-pipeline-pr
+    params:
+      path: pkl-pipeline-pr
+      status: pending
+      context: test
+    get_params:
+      skip_download: true
+  - on_success:
+      put: pkl-pipeline-pr
+      params:
+        path: pkl-pipeline-pr
+        status: success
+        context: test
+      get_params:
+        skip_download: true
+    on_failure:
+      put: pkl-pipeline-pr
+      params:
+        path: pkl-pipeline-pr
+        status: failed
+        context: test
+      get_params:
+        skip_download: true
+    task: comment-on-pr-with-yml-and-concourse-diffs
+    file: pay-ci/ci/tasks/comment-on-pr-with-pkl-pipeline-diffs.yml
+    params:
+      GITHUB_TOKEN: ((github-access-token))
+      CONCOURSE_TEAM: pay-dev
+      FLY_PASSWORD: ((readonly_local_user_password))
+resources:
+- name: pay-ci
+  type: git
+  source:
+    uri: https://github.com/alphagov/pay-ci
+    branch: master
+  icon: github
+- name: pkl-pipeline-pr
+  type: git
+  source:
+    disable_forks: true
+    repository: alphagov/pay-ci
+    access-token: ((github-access-token))
+    paths:
+    - ci/pkl-pipelines/
+  icon: github
+resource_types:
+- name: pull-request
+  type: registry-image
+  source:
+    respository: teliaoss/github-pr-resource
+    tag: v0.23.0
+groups:
+- name: comment-pipeline-changes-on-pr
+  jobs:
+  - comment-pipeline-changes-on-pr
Concourse set-pipeline dry-run for `./pkl-pipeline-changes.yml`
resources:
  resource pkl-pipeline-pr has changed:
  icon: github
  name: pkl-pipeline-pr
  source:
-   access_token: ((github-access-token))
+   access-token: ((github-access-token))
    disable_forks: true
    paths:
-   - ci/pkl-pipelines/**/*.pkl
+   - ci/pkl-pipelines/
    repository: alphagov/pay-ci
- type: pull-request
+ type: git
  
resource types:
  resource type pull-request has changed:
  name: pull-request
  source:
-   repository: teliaoss/github-pr-resource
+   respository: teliaoss/github-pr-resource
    tag: v0.23.0
  type: registry-image
  
jobs:
  job comment-pipeline-changes-on-pr has changed:
  name: comment-pipeline-changes-on-pr
  plan:
  - in_parallel:
      steps:
      - get: pkl-pipeline-pr
        trigger: true
        version: every
      - get: pay-ci
- - params:
+ - get_params:
+     skip_download: true
+   params:
      context: test
      path: pkl-pipeline-pr
      status: pending
    put: pkl-pipeline-pr
- - file: pkl-pipeline-pr/ci/tasks/comment-on-pr-with-pkl-pipeline-diffs.yml
+ - file: pay-ci/ci/tasks/comment-on-pr-with-pkl-pipeline-diffs.yml
    on_failure:
      get_params:
        skip_download: true
      params:
        context: test
        path: pkl-pipeline-pr
        status: failed
      put: pkl-pipeline-pr
    on_success:
      get_params:
        skip_download: true
      params:
        context: test
        path: pkl-pipeline-pr
        status: success
      put: pkl-pipeline-pr
    params:
      CONCOURSE_TEAM: pay-dev
      FLY_PASSWORD: ((readonly_local_user_password))
      GITHUB_TOKEN: ((github-access-token))
    task: comment-on-pr-with-yml-and-concourse-diffs
  
pipeline name: pkl-pipeline-changes

Dry-run mode was set, exiting.

2 similar comments
@alphagov-pay-ci-concourse
Diff of ./pkl-pipeline-changes.yml
--- pay-ci/ci/pkl-pipelines/pay-dev/pkl-pipeline-changes.yml
+++ pkl-pipeline-pr/ci/pkl-pipelines/pay-dev/pkl-pipeline-changes.yml
@@ -0,0 +1,63 @@
+jobs:
+- name: comment-pipeline-changes-on-pr
+  plan:
+  - in_parallel:
+    - get: pkl-pipeline-pr
+      trigger: true
+      version: every
+    - get: pay-ci
+  - put: pkl-pipeline-pr
+    params:
+      path: pkl-pipeline-pr
+      status: pending
+      context: test
+    get_params:
+      skip_download: true
+  - on_success:
+      put: pkl-pipeline-pr
+      params:
+        path: pkl-pipeline-pr
+        status: success
+        context: test
+      get_params:
+        skip_download: true
+    on_failure:
+      put: pkl-pipeline-pr
+      params:
+        path: pkl-pipeline-pr
+        status: failed
+        context: test
+      get_params:
+        skip_download: true
+    task: comment-on-pr-with-yml-and-concourse-diffs
+    file: pay-ci/ci/tasks/comment-on-pr-with-pkl-pipeline-diffs.yml
+    params:
+      GITHUB_TOKEN: ((github-access-token))
+      CONCOURSE_TEAM: pay-dev
+      FLY_PASSWORD: ((readonly_local_user_password))
+resources:
+- name: pay-ci
+  type: git
+  source:
+    uri: https://github.com/alphagov/pay-ci
+    branch: master
+  icon: github
+- name: pkl-pipeline-pr
+  type: git
+  source:
+    disable_forks: true
+    repository: alphagov/pay-ci
+    access-token: ((github-access-token))
+    paths:
+    - ci/pkl-pipelines/
+  icon: github
+resource_types:
+- name: pull-request
+  type: registry-image
+  source:
+    respository: teliaoss/github-pr-resource
+    tag: v0.23.0
+groups:
+- name: comment-pipeline-changes-on-pr
+  jobs:
+  - comment-pipeline-changes-on-pr
Concourse set-pipeline dry-run for `./pkl-pipeline-changes.yml`
resources:
  resource pkl-pipeline-pr has changed:
  icon: github
  name: pkl-pipeline-pr
  source:
-   access_token: ((github-access-token))
+   access-token: ((github-access-token))
    disable_forks: true
    paths:
-   - ci/pkl-pipelines/**/*.pkl
+   - ci/pkl-pipelines/
    repository: alphagov/pay-ci
- type: pull-request
+ type: git
  
resource types:
  resource type pull-request has changed:
  name: pull-request
  source:
-   repository: teliaoss/github-pr-resource
+   respository: teliaoss/github-pr-resource
    tag: v0.23.0
  type: registry-image
  
jobs:
  job comment-pipeline-changes-on-pr has changed:
  name: comment-pipeline-changes-on-pr
  plan:
  - in_parallel:
      steps:
      - get: pkl-pipeline-pr
        trigger: true
        version: every
      - get: pay-ci
- - params:
+ - get_params:
+     skip_download: true
+   params:
      context: test
      path: pkl-pipeline-pr
      status: pending
    put: pkl-pipeline-pr
- - file: pkl-pipeline-pr/ci/tasks/comment-on-pr-with-pkl-pipeline-diffs.yml
+ - file: pay-ci/ci/tasks/comment-on-pr-with-pkl-pipeline-diffs.yml
    on_failure:
      get_params:
        skip_download: true
      params:
        context: test
        path: pkl-pipeline-pr
        status: failed
      put: pkl-pipeline-pr
    on_success:
      get_params:
        skip_download: true
      params:
        context: test
        path: pkl-pipeline-pr
        status: success
      put: pkl-pipeline-pr
    params:
      CONCOURSE_TEAM: pay-dev
      FLY_PASSWORD: ((readonly_local_user_password))
      GITHUB_TOKEN: ((github-access-token))
    task: comment-on-pr-with-yml-and-concourse-diffs
  
pipeline name: pkl-pipeline-changes

Dry-run mode was set, exiting.

@alphagov-pay-ci-concourse
Diff of ./pkl-pipeline-changes.yml
--- pay-ci/ci/pkl-pipelines/pay-dev/pkl-pipeline-changes.yml
+++ pkl-pipeline-pr/ci/pkl-pipelines/pay-dev/pkl-pipeline-changes.yml
@@ -0,0 +1,63 @@
+jobs:
+- name: comment-pipeline-changes-on-pr
+  plan:
+  - in_parallel:
+    - get: pkl-pipeline-pr
+      trigger: true
+      version: every
+    - get: pay-ci
+  - put: pkl-pipeline-pr
+    params:
+      path: pkl-pipeline-pr
+      status: pending
+      context: test
+    get_params:
+      skip_download: true
+  - on_success:
+      put: pkl-pipeline-pr
+      params:
+        path: pkl-pipeline-pr
+        status: success
+        context: test
+      get_params:
+        skip_download: true
+    on_failure:
+      put: pkl-pipeline-pr
+      params:
+        path: pkl-pipeline-pr
+        status: failed
+        context: test
+      get_params:
+        skip_download: true
+    task: comment-on-pr-with-yml-and-concourse-diffs
+    file: pay-ci/ci/tasks/comment-on-pr-with-pkl-pipeline-diffs.yml
+    params:
+      GITHUB_TOKEN: ((github-access-token))
+      CONCOURSE_TEAM: pay-dev
+      FLY_PASSWORD: ((readonly_local_user_password))
+resources:
+- name: pay-ci
+  type: git
+  source:
+    uri: https://github.com/alphagov/pay-ci
+    branch: master
+  icon: github
+- name: pkl-pipeline-pr
+  type: git
+  source:
+    disable_forks: true
+    repository: alphagov/pay-ci
+    access-token: ((github-access-token))
+    paths:
+    - ci/pkl-pipelines/
+  icon: github
+resource_types:
+- name: pull-request
+  type: registry-image
+  source:
+    respository: teliaoss/github-pr-resource
+    tag: v0.23.0
+groups:
+- name: comment-pipeline-changes-on-pr
+  jobs:
+  - comment-pipeline-changes-on-pr
Concourse set-pipeline dry-run for `./pkl-pipeline-changes.yml`
resources:
  resource pkl-pipeline-pr has changed:
  icon: github
  name: pkl-pipeline-pr
  source:
-   access_token: ((github-access-token))
+   access-token: ((github-access-token))
    disable_forks: true
    paths:
-   - ci/pkl-pipelines/**/*.pkl
+   - ci/pkl-pipelines/
    repository: alphagov/pay-ci
- type: pull-request
+ type: git
  
resource types:
  resource type pull-request has changed:
  name: pull-request
  source:
-   repository: teliaoss/github-pr-resource
+   respository: teliaoss/github-pr-resource
    tag: v0.23.0
  type: registry-image
  
jobs:
  job comment-pipeline-changes-on-pr has changed:
  name: comment-pipeline-changes-on-pr
  plan:
  - in_parallel:
      steps:
      - get: pkl-pipeline-pr
        trigger: true
        version: every
      - get: pay-ci
- - params:
+ - get_params:
+     skip_download: true
+   params:
      context: test
      path: pkl-pipeline-pr
      status: pending
    put: pkl-pipeline-pr
- - file: pkl-pipeline-pr/ci/tasks/comment-on-pr-with-pkl-pipeline-diffs.yml
+ - file: pay-ci/ci/tasks/comment-on-pr-with-pkl-pipeline-diffs.yml
    on_failure:
      get_params:
        skip_download: true
      params:
        context: test
        path: pkl-pipeline-pr
        status: failed
      put: pkl-pipeline-pr
    on_success:
      get_params:
        skip_download: true
      params:
        context: test
        path: pkl-pipeline-pr
        status: success
      put: pkl-pipeline-pr
    params:
      CONCOURSE_TEAM: pay-dev
      FLY_PASSWORD: ((readonly_local_user_password))
      GITHUB_TOKEN: ((github-access-token))
    task: comment-on-pr-with-yml-and-concourse-diffs
  
pipeline name: pkl-pipeline-changes

Dry-run mode was set, exiting.

@jfharden jfharden force-pushed the pp-12343/example-pr-adding-new-pipeline branch 2 times, most recently from e236a67 to 1274e84 Compare March 11, 2024 10:23
@alphagov-pay-ci-concourse
Diff of ./pkl-pipeline-changes.yml
--- pay-ci/ci/pkl-pipelines/pay-dev/pkl-pipeline-changes.yml
+++ pkl-pipeline-pr/ci/pkl-pipelines/pay-dev/pkl-pipeline-changes.yml
@@ -0,0 +1,63 @@
+jobs:
+- name: comment-pipeline-changes-on-pr
+  plan:
+  - in_parallel:
+    - get: pkl-pipeline-pr
+      trigger: true
+      version: every
+    - get: pay-ci
+  - put: pkl-pipeline-pr
+    params:
+      path: pkl-pipeline-pr
+      status: pending
+      context: test
+    get_params:
+      skip_download: true
+  - on_success:
+      put: pkl-pipeline-pr
+      params:
+        path: pkl-pipeline-pr
+        status: success
+        context: test
+      get_params:
+        skip_download: true
+    on_failure:
+      put: pkl-pipeline-pr
+      params:
+        path: pkl-pipeline-pr
+        status: failed
+        context: test
+      get_params:
+        skip_download: true
+    task: comment-on-pr-with-yml-and-concourse-diffs
+    file: pay-ci/ci/tasks/comment-on-pr-with-pkl-pipeline-diffs.yml
+    params:
+      GITHUB_TOKEN: ((github-access-token))
+      CONCOURSE_TEAM: pay-dev
+      FLY_PASSWORD: ((readonly_local_user_password))
+resources:
+- name: pay-ci
+  type: git
+  source:
+    uri: https://github.com/alphagov/pay-ci
+    branch: master
+  icon: github
+- name: pkl-pipeline-pr
+  type: git
+  source:
+    disable_forks: true
+    repository: alphagov/pay-ci
+    access-token: ((github-access-token))
+    paths:
+    - ci/pkl-pipelines/
+  icon: github
+resource_types:
+- name: pull-request
+  type: registry-image
+  source:
+    respository: teliaoss/github-pr-resource
+    tag: v0.23.0
+groups:
+- name: comment-pipeline-changes-on-pr
+  jobs:
+  - comment-pipeline-changes-on-pr
Concourse set-pipeline dry-run for `./pkl-pipeline-changes.yml`
resources:
  resource pkl-pipeline-pr has changed:
  icon: github
  name: pkl-pipeline-pr
  source:
-   access_token: ((github-access-token))
+   access-token: ((github-access-token))
    disable_forks: true
    paths:
-   - ci/pkl-pipelines/**/*.pkl
+   - ci/pkl-pipelines/
    repository: alphagov/pay-ci
- type: pull-request
+ type: git
  
resource types:
  resource type pull-request has changed:
  name: pull-request
  source:
-   repository: teliaoss/github-pr-resource
+   respository: teliaoss/github-pr-resource
    tag: v0.23.0
  type: registry-image
  
jobs:
  job comment-pipeline-changes-on-pr has changed:
  name: comment-pipeline-changes-on-pr
  plan:
  - in_parallel:
      steps:
      - get: pkl-pipeline-pr
        trigger: true
        version: every
      - get: pay-ci
- - params:
+ - get_params:
+     skip_download: true
+   params:
      context: test
      path: pkl-pipeline-pr
      status: pending
    put: pkl-pipeline-pr
- - file: pkl-pipeline-pr/ci/tasks/comment-on-pr-with-pkl-pipeline-diffs.yml
+ - file: pay-ci/ci/tasks/comment-on-pr-with-pkl-pipeline-diffs.yml
    on_failure:
      get_params:
        skip_download: true
      params:
        context: test
        path: pkl-pipeline-pr
        status: failed
      put: pkl-pipeline-pr
    on_success:
      get_params:
        skip_download: true
      params:
        context: test
        path: pkl-pipeline-pr
        status: success
      put: pkl-pipeline-pr
    params:
      CONCOURSE_TEAM: pay-dev
      FLY_PASSWORD: ((readonly_local_user_password))
      GITHUB_TOKEN: ((github-access-token))
    task: comment-on-pr-with-yml-and-concourse-diffs
  
pipeline name: pkl-pipeline-changes

Dry-run mode was set, exiting.

Base automatically changed from pp-12343/example-pr-adding-new-pipeline to master March 11, 2024 10:58
@jfharden
Copy link
Contributor Author

jfharden commented Mar 11, 2024

This PR ended up with too many painful conflicts, so it's easier to do a new PR completely based on all the previously merged stuff #1099

@jfharden jfharden closed this Mar 11, 2024
@jfharden jfharden deleted the pp-12385/pkl-dev-process branch March 11, 2024 15:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants