Skip to content
Open
Changes from all 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
20 changes: 17 additions & 3 deletions .github/workflows/archive-changes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -92,18 +92,30 @@ jobs:
pull-requests: write
env:
FORCE_COLOR: 1
defaults:
run:
working-directory: release-tree
steps:
- name: Checkout repo
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 #v6.0.3
with:
path: ci-assets
persist-credentials: false
ref: ${{ github.event.repository.default_branch }}

- name: Checkout release ref
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 #v6.0.3
with:
path: release-tree
persist-credentials: false
submodules: true
ref: ${{ inputs.ref }}

- name: Install Season
uses: ./.github/actions/install-season
uses: ./ci-assets/.github/actions/install-season
with:
gh-token: ${{ secrets.MIDNIGHTCI_PACKAGES_READ }}
config: ./.github/season.yml
config: ${{ github.workspace }}/ci-assets/.github/season.yml

- name: Setup Env
shell: bash
Expand All @@ -129,7 +141,9 @@ jobs:
if: inputs.archive-changes == true
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: git fetch origin tag "$GIT_TAG_RELEASE"
run: >-
git -c http.https://github.com/.extraheader="AUTHORIZATION: bearer $GH_TOKEN"
fetch origin tag "$GIT_TAG_RELEASE"

- name: Archive changes
if: inputs.archive-changes == true
Expand Down
Loading