Refactor workflow env var references
All checks were successful
/ chores (push) Successful in 19s

Updated `.forgejo/workflows/chores.yml` to use `vars` context for
environment variables, ensuring consistent variable scoping and improved
maintainability. This change simplifies the way variables are managed in
GitHub Actions workflow.
This commit is contained in:
Kumi 2024-02-18 13:33:46 +01:00
parent 11bde9e12d
commit 8cb6718dca
Signed by: kumi
GPG key ID: ECBCC9082395383F

View file

@ -6,12 +6,12 @@ jobs:
chores:
env:
FORGEJO_TOKEN: ${{ secrets.FORGEJO_TOKEN }}
FORGEJO_URL: ${{ FORGEJO_URL }}
CHORES_ASSIGNEES: ${{ CHORES_ASSIGNEES }}
CHORES_REPO_OWNER: ${{ CHORES_REPO_OWNER }}
CHORES_REPO_NAME: ${{ CHORES_REPO_NAME }}
CHORES_EXPIRY_DAYS: ${{ CHORES_EXPIRY_DAYS }}
CHORES_TEXT: ${{ CHORES_TEXT }}
FORGEJO_URL: ${{ vars.FORGEJO_URL }}
CHORES_ASSIGNEES: ${{ vars.CHORES_ASSIGNEES }}
CHORES_REPO_OWNER: ${{ vars.CHORES_REPO_OWNER }}
CHORES_REPO_NAME: ${{ vars.CHORES_REPO_NAME }}
CHORES_EXPIRY_DAYS: ${{ vars.CHORES_EXPIRY_DAYS }}
CHORES_TEXT: ${{ vars.CHORES_TEXT }}
steps:
- name: Check out repository
uses: actions/checkout@v4