Skip to content

Bump goreleaser/goreleaser-action from 4 to 5 #91

Bump goreleaser/goreleaser-action from 4 to 5

Bump goreleaser/goreleaser-action from 4 to 5 #91

Workflow file for this run

name: Docs
on:
pull_request:
paths-ignore:
- "README.md"
jobs:
validate:
runs-on: ubuntu-latest
env:
GOPRIVATE: github.com/jetstack/*
steps:
- name: Configure private repo pull access
# the following configuration will grant this action permissions to pull
# that contents of that private repos using the deploy keys in the repo secrets
run: |
mkdir ~/.ssh
chmod 700 ~/.ssh
echo "${{ secrets.DEPLOY_KEY_READ_JS_OPERATOR }}" > ~/.ssh/js_operator_id
echo "${{ secrets.DEPLOY_KEY_READ_VENAFI_ENHANCED_ISSUER }}" > ~/.ssh/venafi_enhanced_issuer_id
echo "${{ secrets.DEPLOY_KEY_READ_EXTERNAL_ISSUER_LIB }}" > ~/.ssh/external_issuer_lib_id
chmod 600 ~/.ssh/venafi_enhanced_issuer_id
chmod 600 ~/.ssh/external_issuer_lib_id
chmod 600 ~/.ssh/js_operator_id
cat <<EOT >> ~/.ssh/config
Host js-operator.github.com
HostName github.com
IdentityFile ~/.ssh/js_operator_id
IdentitiesOnly yes
EOT
cat <<EOT >> ~/.ssh/config
Host venafi-enhanced-issuer.github.com
HostName github.com
IdentityFile ~/.ssh/venafi_enhanced_issuer_id
IdentitiesOnly yes
EOT
cat <<EOT >> ~/.ssh/config
Host external-issuer-lib.github.com
HostName github.com
IdentityFile ~/.ssh/external_issuer_lib_id
IdentitiesOnly yes
EOT
cat <<EOT >> ~/.gitconfig
[url "[email protected]:jetstack/js-operator"]
insteadOf = https://github.com/jetstack/js-operator
[url "[email protected]:jetstack/venafi-enhanced-issuer"]
insteadOf = https://github.com/jetstack/venafi-enhanced-issuer
[url "[email protected]:jetstack/external-issuer-lib"]
insteadOf = https://github.com/jetstack/external-issuer-lib
EOT
- name: Install Go
uses: actions/setup-go@v3
with:
go-version: 1.19.x
- name: Checkout
uses: actions/checkout@v3
- name: Update docs
run: make docs-gen
- name: Test clean
run: git add . && git diff --cached --exit-code