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

refactor(ci): use github context #974

Merged
merged 1 commit into from
May 5, 2024
Merged
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
14 changes: 7 additions & 7 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -169,14 +169,14 @@ jobs:
with:
ref: ${{ vars.RELEASE_BRANCH }}

- name: Restore Documents from main
- name: Restore Documents from ${{ github.ref_name }}
run: |
git fetch --no-tags --depth=1 origin +refs/heads/main:refs/remotes/origin/main
git restore --source=origin/main -- *.md
git restore --source=origin/main -- LICENSE
git restore --source=origin/main -- action.yml
git restore --source=origin/main -- images/*.png
git restore --source=origin/main -- .github/workflows/release.yml
git fetch --no-tags --depth=1 origin +${{ github.ref }}:refs/remotes/origin/${{ github.ref_name }}
git restore --source=origin/${{ github.ref_name }} -- *.md
git restore --source=origin/${{ github.ref_name }} -- LICENSE
git restore --source=origin/${{ github.ref_name }} -- action.yml
git restore --source=origin/${{ github.ref_name }} -- images/*.png
git restore --source=origin/${{ github.ref_name }} -- .github/workflows/release.yml

- name: Download Build Assets
uses: actions/download-artifact@v4.1.7
Expand Down
Loading