diff --git a/.github/workflows/comment_and_automerge.yml b/.github/workflows/comment_and_automerge.yml index 8b57e59..029c0d5 100644 --- a/.github/workflows/comment_and_automerge.yml +++ b/.github/workflows/comment_and_automerge.yml @@ -2,7 +2,7 @@ name: Comment and auto-merge on: workflow_call: secrets: - github_token: + token: required: true inputs: pull_request_operation: @@ -20,7 +20,7 @@ jobs: if: ${{ inputs.pull_request_operation == 'created' || inputs.pull_request_operation == 'updated' }} uses: actions/github-script@main with: - github-token: ${{ secrets.github_token }} + github-token: ${{ secrets.token }} script: | const comment = require('.github/scripts/comment') const compare = require('.github/scripts/compare') @@ -46,4 +46,4 @@ jobs: fi env: PR_URL: ${{ inputs.pull_request_url }} - GH_TOKEN: ${{ secrets.github_token }} + GH_TOKEN: ${{ secrets.token }} diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml deleted file mode 100644 index e2b804a..0000000 --- a/.github/workflows/lint.yml +++ /dev/null @@ -1,13 +0,0 @@ - -name: Lint -on: - pull_request: - branches: [main, testing] -jobs: - lint: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@main - - uses: DeterminateSystems/nix-installer-action@main - - name: Run linter - run: nix shell nixpkgs#nixpkgs-fmt -c nixpkgs-fmt --check . \ No newline at end of file diff --git a/.github/workflows/update_flake_lock.yml b/.github/workflows/update_flake_lock.yml index efff3ee..25ba71e 100644 --- a/.github/workflows/update_flake_lock.yml +++ b/.github/workflows/update_flake_lock.yml @@ -2,7 +2,7 @@ name: Update .lock file on: workflow_call: secrets: - github_token: + token: required: true bot_pat: required: true @@ -14,7 +14,7 @@ jobs: steps: - uses: actions/checkout@main with: - token: ${{ secrets.github_token }} + token: ${{ secrets.token }} - name: Update flake.lock uses: DeterminateSystems/update-flake-lock@main @@ -28,7 +28,7 @@ jobs: pr-title: "🧹 chore(flake.lock): update" pr-labels: auto-merge nix-options: "--access-tokens github.com=${{ secrets.bot_pat }}" - token: ${{ secrets.github_token }} + token: ${{ secrets.token }} - name: Set outputs run: |