From 08cbec44c00aaeed2f27871d1766e89ac3847520 Mon Sep 17 00:00:00 2001 From: Victor Martinez Date: Wed, 15 Feb 2023 09:07:41 +0000 Subject: [PATCH] action: use composite updatecli (#139) --- .github/workflows/update-specs.yml | 19 +++++++------------ 1 file changed, 7 insertions(+), 12 deletions(-) diff --git a/.github/workflows/update-specs.yml b/.github/workflows/update-specs.yml index 13ded15..ab101b6 100644 --- a/.github/workflows/update-specs.yml +++ b/.github/workflows/update-specs.yml @@ -8,8 +8,7 @@ on: - cron: '0 6 * * *' permissions: - pull-requests: write - contents: write + contents: read jobs: bump: @@ -18,13 +17,9 @@ jobs: - uses: actions/checkout@v3 - - name: Setup Git - uses: elastic/apm-pipeline-library/.github/actions/setup-git@current - - - name: Install Updatecli in the runner - uses: updatecli/updatecli-action@453502948b442d7b9a923de7b40cc7ce8628505c - - - name: Run Updatecli - env: - GITHUB_TOKEN: ${{ github.token }} - run: updatecli apply --config ./.ci/update-specs.yml + - uses: elastic/apm-pipeline-library/.github/actions/updatecli@current + with: + vaultUrl: ${{ secrets.VAULT_ADDR }} + vaultRoleId: ${{ secrets.VAULT_ROLE_ID }} + vaultSecretId: ${{ secrets.VAULT_SECRET_ID }} + pipeline: ./.ci/update-specs.yml