Skip to content

Commit

Permalink
chore(updatecli): rename env variable from UPDATECLI_GITHUB to GITHUB
Browse files Browse the repository at this point in the history
Signed-off-by: Olblak <[email protected]>
  • Loading branch information
olblak committed Nov 6, 2023
1 parent 148fb2b commit 9088f86
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 13 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/updatecli.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ jobs:
- name: "Run updatecli in dryrun"
run: "updatecli compose diff --experimental --clean=true"
env:
UPDATECLI_GITHUB_ACTOR: ${{ github.actor }}
UPDATECLI_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_ACTOR: ${{ github.actor }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- uses: tibdex/[email protected]
id: generate_token
Expand All @@ -37,6 +37,6 @@ jobs:
if: github.ref == 'refs/heads/master'
run: "updatecli compose apply --experimental --clean=true"
env:
UPDATECLI_GITHUB_ACTOR: ${{ secrets.UPDATECLI_BOT_GITHUB_ACTOR }}
UPDATECLI_GITHUB_TOKEN: ${{ steps.generate_token.outputs.token }}
GITHUB_ACTOR: ${{ secrets.UPDATECLI_BOT_GITHUB_ACTOR }}
GITHUB_TOKEN: ${{ steps.generate_token.outputs.token }}

6 changes: 3 additions & 3 deletions updatecli/updatecli.d/docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ scms:
email: [email protected]
owner: updatecli
repository: website
token: '{{ requiredEnv "UPDATECLI_GITHUB_TOKEN" }}'
token: '{{ requiredEnv "GITHUB_TOKEN" }}'
user: updatecli
username: '{{ requiredEnv "UPDATECLI_GITHUB_ACTOR" }}'
username: '{{ requiredEnv "GITHUB_ACTOR" }}'
disabled: false

targets:
Expand All @@ -35,4 +35,4 @@ targets:
- name: PATH
scmid: default

version: "0.64.1"
version: "0.64.1"
8 changes: 4 additions & 4 deletions updatecli/updatecli.d/installation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ scms:
email: [email protected]
owner: updatecli
repository: website
token: '{{ requiredEnv "UPDATECLI_GITHUB_TOKEN" }}'
token: '{{ requiredEnv "GITHUB_TOKEN" }}'
user: updatecli
username: '{{ requiredEnv "UPDATECLI_GITHUB_ACTOR" }}'
username: '{{ requiredEnv "GITHUB_ACTOR" }}'
disabled: false

sources:
Expand All @@ -31,8 +31,8 @@ sources:
spec:
owner: updatecli
repository: updatecli
token: '{{ requiredEnv "UPDATECLI_GITHUB_TOKEN" }}'
username: '{{ requiredEnv "UPDATECLI_GITHUB_ACTOR" }}'
token: '{{ requiredEnv "GITHUB_TOKEN" }}'
username: '{{ requiredEnv "GITHUB_ACTOR" }}'

targets:
download-url:
Expand Down
4 changes: 2 additions & 2 deletions updatecli/updatecli.d/jsonschema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ scms:
email: [email protected]
owner: updatecli
repository: website
token: '{{ requiredEnv "UPDATECLI_GITHUB_TOKEN" }}'
token: '{{ requiredEnv "GITHUB_TOKEN" }}'
user: updatecli
username: '{{ requiredEnv "UPDATECLI_GITHUB_ACTOR" }}'
username: '{{ requiredEnv "GITHUB_ACTOR" }}'
disabled: false

# targets:
Expand Down

0 comments on commit 9088f86

Please sign in to comment.