Skip to content

Commit

Catch up with main

g1tbotcommitted Parents63a17660c5acdeBrowse files
8 files+52−280/8 viewed
+0−2
1−on: issue.exploded
2−do: [assign_agent]
+0−7
1−name: Label on every update
2−on: [issue.updated, issue.opened]
3−if:
4− labels: automation-test
5−do:
6− - label: touched-again
7− - comment: "Touched by {{automation}} after {{event}}."
+0−3
1−on: manual
2−do:
3− - comment: "Run by hand on #{{number}} ({{title}})."
+0−10
1−name: Triage test issues
2−on: issue.opened
3−if:
4− labels: automation-test
5−do:
6− - comment: "Thanks, {{actor}}. This automation saw #{{number}} ({{title}}) and labelled it."
7− - label: triaged
8− - notify:
9− url: https://httpbin.org/post
10− text: "{{repo}}#{{number}} was triaged: {{url}}"
+10−0
1+name: After build
2+on:
3+ workflow_run:
4+ workflows: [Build]
5+ types: [completed]
6+jobs:
7+ report:
8+ runs-on: ubuntu-latest
9+ steps:
10+ - run: echo "Build ${{ github.event.workflow_run.run_number }} finished with ${{ github.event.workflow_run.conclusion }} on ${{ github.event.workflow_run.head_branch }}"
+35−0
1+name: Build
2+on:
3+ push:
4+ branches: [main]
5+ workflow_dispatch:
6+jobs:
7+ build:
8+ runs-on: ubuntu-latest
9+ steps:
10+ - uses: actions/checkout@v7
11+ - name: Restore the cache
12+ id: cache
13+ uses: actions/cache@v6
14+ with:
15+ path: .deps
16+ key: deps-${{ hashFiles('math.js') }}
17+ restore-keys: deps-
18+ - name: Fill the cache on a miss
19+ if: steps.cache.outputs.cache-hit != 'true'
20+ run: mkdir -p .deps && date > .deps/made-at && echo "cache was cold"
21+ - run: echo "cache hit=${{ steps.cache.outputs.cache-hit }}; deps made at $(cat .deps/made-at)"
22+ - run: mkdir -p dist && cp math.js dist/ && echo "built $(date)" > dist/BUILD
23+ - uses: actions/upload-artifact@v7
24+ with:
25+ name: dist
26+ path: dist/
27+ verify:
28+ needs: build
29+ runs-on: ubuntu-latest
30+ steps:
31+ - uses: actions/download-artifact@v8
32+ with:
33+ name: dist
34+ path: out
35+ - run: ls -la out && cat out/BUILD && node -e "console.log(require('./out/math.js').add(2, 2))"
+2−1
11 name: Checks
22 on:
33 pull_request:
4+ merge_group:
45 push:
56 branches: [main]
67 jobs:
78 test:
89 runs-on: ubuntu-latest
910 steps:
10− - uses: actions/checkout@v4
11+ - uses: actions/checkout@v7
1112 - name: Unit tests
1213 run: node test.js
1314 - name: House style
+5−5
1616 version: ${{ steps.version.outputs.value }}
1717 matrix: ${{ steps.matrix.outputs.json }}
1818 steps:
19− - uses: actions/checkout@v4
19+ - uses: actions/checkout@v7
2020 - id: version
2121 run: echo "value=1.2.$GITHUB_RUN_NUMBER" >> "$GITHUB_OUTPUT"
2222 - id: matrix
23− run: echo 'json={"node":[20,22]}' >> "$GITHUB_OUTPUT"
23+ run: echo 'json={"node":[24,26]}' >> "$GITHUB_OUTPUT"
2424 - name: Show the context
2525 run: |
2626 echo "::group::Context"
3737 strategy:
3838 matrix: ${{ fromJSON(needs.setup.outputs.matrix) }}
3939 steps:
40− - uses: actions/checkout@v4
41− - uses: actions/setup-node@v4
40+ - uses: actions/checkout@v7
41+ - uses: actions/setup-node@v7
4242 with:
4343 node-version: ${{ matrix.node }}
4444 - run: node --version
4949 continue-on-error: true
5050 run: exit 3
5151 - name: Only on Node 22
52− if: matrix.node == 22
52+ if: matrix.node == 24
5353 run: echo "hash=${{ hashFiles('**/*.yml') }}"
5454 report:
5555 needs: [setup, test]

Comments

Sign in to comment.