actions: Replace L10N_SSH_KEY secret with RSM CI GitHub token
This will reduce the number of secrets we have to manage. We already use the RSM_CI_APP_ID and RSM_CI_APP_PRIVATE_KEY in `do-release.yaml`.
This commit is contained in:
parent
2463666afe
commit
ca1eaefc86
|
@ -16,6 +16,15 @@ jobs:
|
||||||
options: --user root
|
options: --user root
|
||||||
timeout-minutes: 10
|
timeout-minutes: 10
|
||||||
steps:
|
steps:
|
||||||
|
- uses: actions/create-github-app-token@v1
|
||||||
|
id: app-token
|
||||||
|
with:
|
||||||
|
app-id: ${{ vars.RSM_CI_APP_ID }}
|
||||||
|
private-key: ${{ secrets.RSM_CI_APP_PRIVATE_KEY }}
|
||||||
|
permissions:
|
||||||
|
contents: "write"
|
||||||
|
repositories: "rpm-software-management/dnf5-l10n"
|
||||||
|
|
||||||
- name: Clone source repository
|
- name: Clone source repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
|
@ -33,7 +42,7 @@ jobs:
|
||||||
with:
|
with:
|
||||||
path: l10n
|
path: l10n
|
||||||
repository: ${{ github.repository }}-l10n
|
repository: ${{ github.repository }}-l10n
|
||||||
ssh-key: ${{ secrets.L10N_SSH_KEY }}
|
token: ${{ steps.app-token.outputs.token }}
|
||||||
|
|
||||||
- name: Commit .pot to weblate repo
|
- name: Commit .pot to weblate repo
|
||||||
run: |
|
run: |
|
||||||
|
|
Loading…
Reference in New Issue