Skip to content

Commit 1c0ad52

Browse files
committed
test issue creation
1 parent 816f97f commit 1c0ad52

File tree

1 file changed

+21
-58
lines changed

1 file changed

+21
-58
lines changed

.github/workflows/commit.yml

Lines changed: 21 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -5,67 +5,30 @@ on:
55
push:
66

77
jobs:
8-
lint-actions:
9-
name: Lint Yaml
8+
create-issue-on-failure:
9+
name: test issue creation
1010
runs-on: ubuntu-latest
1111
steps:
1212
- name: checkout
1313
uses: actions/checkout@v6
14-
- name: Lint GitHub Actions
15-
run: yamllint -c .yamllint.yml .github/workflows/
16-
test:
17-
name: Build and Test
18-
runs-on: ubuntu-latest
19-
steps:
20-
- name: checkout
21-
uses: actions/checkout@v6
22-
- name: build
23-
run: make build
24-
- name: test
25-
run: make test
26-
- name: cypress-artifacs
27-
uses: actions/upload-artifact@v6
14+
- name: Intentional failure
15+
run: |
16+
echo "Forcing failure to test issue creation"
17+
exit 1
18+
- name: Create Issue for auditing 📑 or failure 😢
2819
if: failure()
20+
uses: JasonEtco/create-an-issue@v2
21+
env:
22+
GITHUB_TOKEN: ${{ secrets.ADD_TO_PROJECT_PAT }}
23+
GITHUB_JOB: ${{ toJson(github)['job'] }}
24+
GITHUB_ATTEMPTS: ${{ github.run_attempt }}
25+
LAST_COMMIT: ${{ github.sha }}
26+
LAST_RUN_BY: ${{ github.actor }}
27+
RUN_ID: ${{ github.run_id }}
28+
COMMAND: ${{ matrix.command }}
29+
SCHEDULE: ${{ matrix.schedule }}
30+
ENVIRONMENT: ${{ matrix.environ }}
31+
EXEC_TIME: ${{ env.ELAPSED }}
2932
with:
30-
name: cypress-artifacts
31-
path: |
32-
./e2e/cypress/screenshots/
33-
./e2e/cypress/videos/
34-
35-
test_proxy:
36-
name: Validate Proxy Configuration Files
37-
runs-on: ubuntu-latest
38-
steps:
39-
- name: checkout
40-
uses: actions/checkout@v6
41-
- name: test
42-
run: make validate-proxy
43-
44-
test_vulnerability:
45-
name: test vulnerability
46-
runs-on: ubuntu-latest
47-
steps:
48-
- name: checkout
49-
uses: actions/checkout@v6
50-
- name: test_vulnerability
51-
run: make vulnerability-check
52-
53-
create-cloudgov-services-development:
54-
if: github.ref == 'refs/heads/develop'
55-
name: create services (development)
56-
uses: gsa/data.gov/.github/workflows/create-services-template.yml@main
57-
with:
58-
environ: development
59-
secrets: inherit
60-
61-
deploy-development:
62-
if: github.ref == 'refs/heads/develop'
63-
name: deploy (development)
64-
needs:
65-
- create-cloudgov-services-development
66-
uses: gsa/data.gov/.github/workflows/deploy-template.yml@main
67-
with:
68-
environ: development
69-
app_url: https://catalog-dev-datagov.app.cloud.gov
70-
app_names: "{\"include\":[{\"app\":\"catalog-web\",\"smoketest\":true},{\"app\":\"catalog-admin\"},{\"app\":\"catalog-fetch\"},{\"app\":\"catalog-gather\"},{\"app\":\"catalog-proxy\",\"robots-dev\":true}]}"
71-
secrets: inherit
33+
filename: ".github/automated_ckan_error.md"
34+
update_existing: true

0 commit comments

Comments
 (0)