Skip to content

Commit 0a7c0f8

Browse files
authored
Use composite action for updatecli workflow (#1756)
* Use composite action * Add env
1 parent da8e41d commit 0a7c0f8

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

.github/workflows/update-specs.yml

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,23 +6,21 @@ on:
66
- cron: '0 6 * * *'
77

88
permissions:
9-
pull-requests: write
10-
contents: write
9+
contents: read
1110

1211
jobs:
1312
bump:
1413
runs-on: ubuntu-latest
1514
steps:
1615
- uses: actions/checkout@v3
17-
- name: Setup Git
18-
uses: elastic/apm-pipeline-library/.github/actions/setup-git@current
19-
- name: Install Updatecli in the runner
20-
uses: updatecli/updatecli-action@453502948b442d7b9a923de7b40cc7ce8628505c
21-
- name: Run Updatecli
16+
- uses: elastic/apm-pipeline-library/.github/actions/updatecli@current
2217
env:
23-
GITHUB_TOKEN: ${{ github.token }}
2418
BRANCH_NAME: ${{ github.ref_name }}
25-
run: updatecli apply --config ./.ci/update-specs.yml
19+
with:
20+
vaultUrl: ${{ secrets.VAULT_ADDR }}
21+
vaultRoleId: ${{ secrets.VAULT_ROLE_ID }}
22+
vaultSecretId: ${{ secrets.VAULT_SECRET_ID }}
23+
pipeline: ./.ci/update-specs.yml
2624
- if: failure()
2725
uses: elastic/apm-pipeline-library/.github/actions/notify-build-status@current
2826
with:

0 commit comments

Comments
 (0)