Use latest docker/build-push-action with provenance set to false #27
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Publish Versioned API Reference Wiki page" | |
on: | |
push: | |
tags: | |
- 'v[0-9]+.[0-9]+.[0-9]+' | |
jobs: | |
publish-versioned-api-reference: | |
name: Publish Versioned API Reference Wiki | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout operator codebase | |
uses: actions/checkout@v4 | |
with: | |
path: cluster-operator | |
- name: Get the version | |
id: get_version | |
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//} | |
- name: Checkout wiki codebase | |
uses: actions/checkout@v4 | |
with: | |
repository: ${{ github.repository }}.wiki | |
path: wiki | |
- name: Push to wiki | |
run: | | |
cd wiki | |
git config --local user.email "[email protected]" | |
git config --local user.name "github-actions" | |
# Add the versioned API Reference to the Wiki | |
cp ../cluster-operator/docs/api/rabbitmq.com.ref.asciidoc ./API_Reference_${{ steps.get_version.outputs.VERSION }}.asciidoc | |
# Regenerate the ordered list of API Reference docs for the sidebar | |
export REGENERATED_SIDEBAR="$(../cluster-operator/hack/generate-ordered-api-reference-list.sh .)" | |
echo "$REGENERATED_SIDEBAR" > Wiki_Sidebar.md | |
git add ./API_Reference_${{ steps.get_version.outputs.VERSION }}.asciidoc | |
git add ./Wiki_Sidebar.md | |
git commit -m "Publish version ${{ steps.get_version.outputs.VERSION }} API Reference" && git push | |
- uses: 8398a7/action-slack@v3 | |
with: | |
status: ${{ job.status }} | |
fields: repo,message,action,eventName | |
env: | |
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} | |
if: failure() |