Skip to content

Commit

Permalink
fix(ci): use PAT instead of GITHUB_TOKEN
Browse files Browse the repository at this point in the history
  • Loading branch information
truelecter committed Sep 2, 2023
1 parent adc87e8 commit 103cd0f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
11 changes: 1 addition & 10 deletions .github/workflows/build-x86.yaml
Original file line number Diff line number Diff line change
@@ -1,18 +1,14 @@
name: Build x86
on:
push:
workflow_dispatch:
pull_request:
workflow_run:
workflows:
- "Update flake.lock"
types: [completed]

env:
REF: ${{ github.event_name == 'workflow_run' && 'auto/upgrade-dependencies' || github.ref }}

jobs:
build_system:
if: (contains(fromJSON('["push", "workflow_dispatch"]'), github.event_name) || github.event.workflow_run.conclusion == 'success')
runs-on: ubuntu-latest
strategy:
matrix:
Expand All @@ -24,8 +20,6 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
ref: ${{ env.REF }}
- name: Install Nix
uses: cachix/install-nix-action@v20
with:
Expand All @@ -43,12 +37,9 @@ jobs:
build_shell:
runs-on: ubuntu-latest
if: (contains(fromJSON('["push", "workflow_dispatch"]'), github.event_name) || github.event.workflow_run.conclusion == 'success')
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
ref: ${{ env.REF }}
- name: Install Nix
uses: cachix/install-nix-action@v20
with:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/flake-lock.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ jobs:
commit-msg: "deps(flake-lock): Updated flake.lock"
pr-title: "[Automated] Update 'flake.lock' and sources"
branch: "auto/upgrade-dependencies"
token: ${{ secrets.PR_WF_ENABLED_TOKEN }}
pr-labels: |
dependencies
automated

0 comments on commit 103cd0f

Please sign in to comment.