Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: add permissions for github token refresh-manifests #159

Merged
merged 5 commits into from
Jan 24, 2025
Merged
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 10 additions & 3 deletions .github/workflows/refresh-manifests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,11 @@ jobs:
if [[ "${#files[*]}" -ne 0 ]]; then
nix-instantiate --parse "${files[@]}" >/dev/null
fi
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: manifests
path: manifests/
overwrite: true

download-manifests-and-nix-build:
needs: refresh-and-upload-manifests
Expand All @@ -42,10 +43,11 @@ jobs:
steps:
- uses: actions/checkout@v3
- run: rm -r manifests
- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
name: manifests
path: manifests/
overwrite: true
- name: stage manifests for nix build
run: git add -v manifests
- uses: cachix/install-nix-action@v22
Expand All @@ -60,16 +62,21 @@ jobs:
download-manifests-and-commit:
needs: [refresh-and-upload-manifests, download-manifests-and-nix-build]
runs-on: ubuntu-latest
permissions:
# Give the default GITHUB_TOKEN write permission to commit and push the
# added or changed files to the repository.
contents: write
steps:
- uses: actions/checkout@v3
with:
persist-credentials: false
ref: master
- run: rm -r ./manifests
- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
name: manifests
path: manifests/
overwrite: true
- name: Check and commit changes
run: |
git config --local user.email "[email protected]"
Expand Down
Loading