File: references.yaml

package info (click to toggle)
puppet-agent 8.10.0-6
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 27,404 kB
  • sloc: ruby: 286,820; sh: 492; xml: 116; makefile: 88; cs: 68
file content (52 lines) | stat: -rw-r--r-- 1,476 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
---
name: Generate References

on:
  push:
    branches:
      - main

permissions:
  contents: write

jobs:
  generate_references:
    if: ${{ github.repository_owner == 'puppetlabs' }}
    runs-on: ubuntu-latest
    name: Generate References
    env:
      BUNDLE_WITH: "documentation"
      BUNDLE_WITHOUT: "features packaging"
    steps:
      - name: Checkout current PR
        uses: actions/checkout@v4
        with:
          token: ${{ secrets.RELEASE_BOT_GITHUB_TOKEN }}

      - name: Setup Ruby
        uses: ruby/setup-ruby@v1
        with:
          ruby-version: 3.2
          bundler-cache: true

      - name: Setup Pandoc
        uses: pandoc/actions/setup@d940685d5968400c91029147adbd612deb7696b0
        with:
          version: 3.1.8

      - name: Generate References
        id: generate-references
        run: |
          bundle exec rake references:all
          git --no-pager diff --exit-code --ignore-matching-lines='This page was generated from the Puppet source' --ignore-matching-lines='built_from_commit:' man references || echo 'commit=true' >> "$GITHUB_OUTPUT" 

      - name: Commit and Push
        if: ${{ steps.generate-references.outputs.commit == 'true' }}
        uses: EndBug/add-and-commit@a94899bca583c204427a224a7af87c02f9b325d5
        with:
          author_name: GitHub Actions
          author_email: actions@github.com
          message: 'Update references [no-promote]'
          add: 'man references'
          push: true