Skip to content

Commit

Permalink
CI: disable broken attic script
Browse files Browse the repository at this point in the history
  • Loading branch information
A1ca7raz committed Feb 1, 2024
1 parent b399600 commit ff5526d
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions .github/workflows/update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ jobs:
contents: write
env:
NIXPKGS_ALLOW_UNFREE: 1
ATTIC_SERVER: ${{ secrets.ATTIC_SERVER }}
ATTIC_CACHE: ${{ secrets.ATTIC_CACHE }}
ATTIC_ACCESS_TOKEN: ${{ secrets.ATTIC_ACCESS_TOKEN }}
# ATTIC_SERVER: ${{ secrets.ATTIC_SERVER }}
# ATTIC_CACHE: ${{ secrets.ATTIC_CACHE }}
# ATTIC_ACCESS_TOKEN: ${{ secrets.ATTIC_ACCESS_TOKEN }}

steps:
- name: 0-1. Checkout repository
Expand All @@ -47,17 +47,17 @@ jobs:
if: ${{ inputs.update_lock == true || github.event_name != 'workflow_dispatch' }}
run: nix flake update --impure

- name: 2-1. Setup Attic
if: ${{ inputs.update_source == true || github.event_name != 'workflow_dispatch' }}
run: |
# curl -LO https://raw.githubusercontent.com/zhaofengli/attic/main/.github/install-attic-ci.sh
curl -LO https://raw.githubusercontent.com/icewind1991/attic-action/master/dist/main/install-attic-ci.sh
bash install-attic-ci.sh
# https://github.com/zhaofengli/attic/blob/main/.github/workflows/build.yml#L30
export PATH=$HOME/.nix-profile/bin:$PATH
attic login --set-default ci "$ATTIC_SERVER" "$ATTIC_ACCESS_TOKEN"
attic use "$ATTIC_CACHE"
# - name: 2-1. Setup Attic
# if: ${{ inputs.update_source == true || github.event_name != 'workflow_dispatch' }}
# run: |
# # curl -LO https://raw.githubusercontent.com/zhaofengli/attic/main/.github/install-attic-ci.sh
# curl -LO https://raw.githubusercontent.com/icewind1991/attic-action/master/dist/main/install-attic-ci.sh
# bash install-attic-ci.sh
#
# # https://github.com/zhaofengli/attic/blob/main/.github/workflows/build.yml#L30
# export PATH=$HOME/.nix-profile/bin:$PATH
# attic login --set-default ci "$ATTIC_SERVER" "$ATTIC_ACCESS_TOKEN"
# attic use "$ATTIC_CACHE"

- name: 2-2. Update package sources
if: ${{ inputs.update_source == true || github.event_name != 'workflow_dispatch' }}
Expand Down

0 comments on commit ff5526d

Please sign in to comment.