diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 6b8739100..9de0b71ff 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,20 +1,20 @@ name: Release shared-workflows on: - push: - branches: - - main + pull_request: jobs: release-please: runs-on: ubuntu-latest steps: - - uses: googleapis/release-please-action@7987652d64b4581673a76e33ad5e98e3dd56832f # v4.1.3 + - uses: dsotirakis/release-please-action@add-generic-sha-updater id: release with: config-file: release-please-config.json manifest-file: .release-please-manifest.json - target-branch: ${{ github.ref_name }} + target-branch: test-update-shas-in-readme + env: + GITHUB_SOURCE_SHA: ${{ github.event.pull_request.head.sha }} # We release full semver versions major.minor.patch. We need to make sure # that v2 is updated as well as v2.0, so that people can pin to the major diff --git a/actions/argo-lint/README.md b/actions/argo-lint/README.md index 7e805988f..0c3b763e1 100644 --- a/actions/argo-lint/README.md +++ b/actions/argo-lint/README.md @@ -4,13 +4,13 @@ Shared workflow to lint Argo workflow files. ## Example - + ``` -uses: grafana/shared-workflows/actions/argo-lint@argo-lint-v1.0.0 +uses: grafana/shared-workflows/actions/argo-lint@b7d0dcd417e364e0e6ea7f2d58843b585b7fd3e0 # v0.0.1 with: path: /path/to/files # Paths to files for linting ``` - + diff --git a/release-please-config.json b/release-please-config.json index 78c4d1bda..ee7854ef1 100644 --- a/release-please-config.json +++ b/release-please-config.json @@ -1,5 +1,5 @@ { - "$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json", + "$schema": "https://raw.githubusercontent.com/dsotirakis/release-please/add-generic-sha-updater/schemas/config.json", "changelog-sections": [ { "section": "🎉 Features", @@ -55,79 +55,12 @@ "packages": { "actions/argo-lint": { "package-name": "argo-lint", - "extra-files": ["README.md"] - }, - "actions/aws-auth": { - "package-name": "aws-auth", - "extra-files": ["README.md"] - }, - "actions/build-push-to-dockerhub": { - "package-name": "build-push-to-dockerhub", - "extra-files": ["README.md"] - }, - "actions/dockerhub-login": { - "package-name": "dockerhub-login", - "extra-files": ["README.md"] - }, - "actions/find-pr-for-commit": { - "package-name": "find-pr-for-commit", - "extra-files": ["README.md"] - }, - "actions/generate-openapi-clients": { - "package-name": "generate-openapi-clients", - "extra-files": ["README.md"] - }, - "actions/get-vault-secrets": { - "package-name": "get-vault-secrets", - "extra-files": ["README.md"] - }, - "actions/lint-pr-title": { - "package-name": "lint-pr-title", - "extra-files": ["README.md"] - }, - "actions/login-to-gar": { - "package-name": "login-to-gar", - "extra-files": ["README.md"] - }, - "actions/login-to-gcs": { - "package-name": "login-to-gcs", - "extra-files": ["README.md"] - }, - "actions/push-to-gar-docker": { - "package-name": "push-to-gar-docker", - "extra-files": ["README.md"] - }, - "actions/push-to-gcs": { - "package-name": "push-to-gcs", - "extra-files": ["README.md"] - }, - "actions/send-slack-message": { - "package-name": "send-slack-message", - "extra-files": ["README.md"] - }, - "actions/setup-argo": { - "package-name": "setup-argo", - "extra-files": ["README.md"] - }, - "actions/setup-conftest": { - "package-name": "setup-conftest", - "extra-files": ["README.md"] - }, - "actions/syft-sbom-report": { - "package-name": "syft-sbom-report", - "extra-files": ["README.md"] - }, - "actions/techdocs-rewrite-relative-links": { - "package-name": "techdocs-rewrite-relative-links", - "extra-files": ["README.md"] - }, - "actions/trigger-argo-workflow": { - "package-name": "trigger-argo-workflow", - "extra-files": ["README.md"] - }, - "actions/validate-policy-bot-config": { - "package-name": "validate-policy-bot-config", - "extra-files": ["README.md"] + "extra-files": [ + { + "type": "sha", + "path": "README.md" + } + ] } }, "release-type": "simple",