fix(deps): Update dependency cloudquery/cloudquery to v6.35.5 (#877) #412
This file contains hidden or 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: 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@f8d387b68d61c58ab83c6c016672934102569859 # 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@16a9c90856f42705d54a6fda1823352bdc62cf38 # v4 | |
| id: release | |
| with: | |
| token: ${{ steps.app-token.outputs.token }} | |
| - name: Checkout | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 | |
| 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@dda3372f752e03dde6b3237bc9431cdc2f7a02a2 # 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@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8 | |
| 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@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8 | |
| 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'] | |
| }); |