Skip to content

fix(deps): Update dependency cloudquery/cloudquery to v6.43.0 (#906) #440

fix(deps): Update dependency cloudquery/cloudquery to v6.43.0 (#906)

fix(deps): Update dependency cloudquery/cloudquery to v6.43.0 (#906) #440

name: Release Please
on:
push:
branches:
- main
permissions:
contents: write
pull-requests: write
jobs:
release-please:
runs-on: ubuntu-latest
steps:
- name: Generate GitHub App token
id: app-token
uses: actions/create-github-app-token@bcd2ba49218906704ab6c1aa796996da409d3eb1 # v3
with:
app-id: ${{ secrets.CQ_APP_ID }}
private-key: ${{ secrets.CQ_APP_PRIVATE_KEY }}
permission-contents: write
permission-pull-requests: write
- uses: googleapis/release-please-action@45996ed1f6d02564a971a2fa1b5860e934307cf7 # v5
id: release
with:
token: ${{ steps.app-token.outputs.token }}
- name: Checkout
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
if: |
startsWith(github.event.head_commit.message, 'chore(main): Release')
with:
fetch-depth: 0
- name: Configure Git
if: |
startsWith(github.event.head_commit.message, 'chore(main): Release')
run: |
git config user.name "$GITHUB_ACTOR"
git config user.email "$GITHUB_ACTOR@users.noreply.github.com"
- name: Install Helm
if: |
startsWith(github.event.head_commit.message, 'chore(main): Release')
uses: azure/setup-helm@9bc31f4ebc9c6b171d7bfbaa5d006ae7abdb4310 # v5
with:
version: v3.8.1
- name: Helm Deps
if: |
startsWith(github.event.head_commit.message, 'chore(main): Release')
run: |
helm repo add secrets-store-csi-driver https://kubernetes-sigs.github.io/secrets-store-csi-driver/charts
helm repo add grafana https://grafana.github.io/helm-charts
helm repo add bitnami https://charts.bitnami.com/bitnami
- name: Run chart-releaser
if: |
startsWith(github.event.head_commit.message, 'chore(main): Release')
uses: helm/chart-releaser-action@cae68fefc6b5f367a0275617c9f83181ba54714f # v1.7.0
with:
skip_existing: true
env:
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
- name: Get PR data
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9
if: |
startsWith(github.event.head_commit.message, 'chore(main): Release')
id: get_pr_data
with:
script: |
return (
await github.rest.repos.listPullRequestsAssociatedWithCommit({
commit_sha: context.sha,
owner: context.repo.owner,
repo: context.repo.repo,
})
).data[0];
- name: Update PR labels
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9
if: |
startsWith(github.event.head_commit.message, 'chore(main): Release')
with:
script: |
const prNumber = ${{ fromJson(steps.get_pr_data.outputs.result).number }};
// Remove the pending label
await github.rest.issues.removeLabel({
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: prNumber,
name: 'autorelease: pending'
});
// Add the tagged label
await github.rest.issues.addLabels({
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: prNumber,
labels: ['autorelease: tagged']
});