Skip to content

Force a config change #2

Force a config change

Force a config change #2

Workflow file for this run

---
name: Generate References
on:
push:
# REMIND: change branch
branches:
- reftest
permissions:
contents: write
jobs:
generate_references:
# REMIND enable check
# 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
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.2
bundler-cache: true
- name: Setup pandoc
uses: pandoc/actions/setup@v1
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@v9
with:
author_name: GitHub Actions
author_email: [email protected]
message: 'Update references [no-promote]'
add: 'man references'
push: true