Skip to content

Commit

Permalink
DEBUG: changed files
Browse files Browse the repository at this point in the history
  • Loading branch information
alexkilgour committed Sep 21, 2023
1 parent 134517b commit 77fa344
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 25 deletions.
24 changes: 2 additions & 22 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,6 @@ on:
pull_request:
branches:
- main

# from travis
# env:
# CHANGED_FILES: $(git diff --name-only $TRAVIS_COMMIT_RANGE)

jobs:
test:
runs-on: '${{ matrix.os }}'
Expand All @@ -19,8 +14,6 @@ jobs:
- ubuntu-latest
node-version:
- 14.x
# outputs:
# files_changed: ${{ steps.changed_files.outputs.files_changed }}
steps:
- name: 'Set up Node.js ${{ matrix.node-version }}'
uses: actions/setup-node@v1
Expand All @@ -38,17 +31,14 @@ jobs:
uses: actions/checkout@v4
with:
fetch-depth: 0
# env:
# COMMIT_RANGE: ${{ github.event.pull_request.base.sha }}..${{ github.event.pull_request.head.sha }}
# CHANGED_FILES_LIST: $(git diff --name-only ${{ github.event.pull_request.base.sha }}..${{ github.event.pull_request.head.sha }})

- name: Get changed files
id: changed_files
uses: tj-actions/changed-files@v39
with:
since_last_remote_commit: true

- name: List all changed files
- name: Save changed files to environment variable
run: |
csv=""
for result in ${{ steps.changed_files.outputs.all_changed_files }}; do
Expand All @@ -57,18 +47,8 @@ jobs:
done
echo "CHANGED_FILES=$csv" >> $GITHUB_ENV
# - name: push to env
# run: |
# echo "CHANGED_FILES=${{ steps.changed_files.outputs.all_changed_files }}" >> $GITHUB_ENV

# - name: Get changeset
# run: |
# echo 'CHANGED_FILES<<EOF' >> $GITHUB_ENV
# $(git diff --name-only ${{ github.event.pull_request.base.sha }}..${{ github.event.pull_request.head.sha }}) >> $GITHUB_ENV
# echo 'EOF' >> $GITHUB_ENV

- name: Test1
run: echo $CHANGED_FILES
run: echo env
# - name: Test2
# run: echo env.CHANGED_FILES

Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Contributing to frontend-toolkits
edit9

When contributing to an existing package, or building a new one, work should:

- Always be done in a branch
Expand Down
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
[!WARNING] This is a warning about newer version of Elements 9

# Frontend Toolkits

[![Build Status][badge-build]][info-build]
Expand Down

0 comments on commit 77fa344

Please sign in to comment.