diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 26481154..b3660e8e 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -36,29 +36,37 @@ jobs: run: echo "branch_exists=$(git ls-remote --heads origin refs/heads/${{env.UPDATE_BRANCH_NAME}} | wc -l)" >> $GITHUB_ENV - name: Checkout existing branch if: ${{ env.branch_exists == 1 }} - run: git checkout ${{env.UPDATE_BRANCH_NAME}} + run: | + git checkout ${{env.UPDATE_BRANCH_NAME}} + git pull - name: Checkout new branch if: ${{ env.branch_exists == 0 }} run: git checkout -b ${{env.UPDATE_BRANCH_NAME}} - - name: Install packages - run: npm ci - - name: Compile Typescript files - run: npm run build:fetch-icons - - name: Reset values if action is not scheduled. - if: ${{github.event_name != 'schedule'}} + # - name: Install packages + # run: npm ci + # - name: Compile Typescript files + # run: npm run build:fetch-icons + # - name: Reset values if action is not scheduled. + # if: ${{github.event_name != 'schedule'}} + # run: | + # : > ./.github/fetch_icons/hash.txt + # - name: Fetch icons + # id: "fetch_icons" + # uses: ./.github/fetch_icons + # with: + # figma-access-token: ${{ secrets.FIGMA_PERSONAL_ACCESS_TOKEN }} + # - name: Icons changed + # run: echo ${{ steps.fetch_icons.outputs.files_changed }} + # - name: Get current date + # if: ${{ steps.fetch_icons.outputs.files_changed == 'true'}} + # id: date + # run: echo date=$(date +'%d-%b-%Y') >> $GITHUB_OUTPUT + - name: Do something + run: touch testFile.txt + - name: view changes run: | - : > ./.github/fetch_icons/hash.txt - - name: Fetch icons - id: "fetch_icons" - uses: ./.github/fetch_icons - with: - figma-access-token: ${{ secrets.FIGMA_PERSONAL_ACCESS_TOKEN }} - - name: Icons changed - run: echo ${{ steps.fetch_icons.outputs.files_changed }} - - name: Get current date - if: ${{ steps.fetch_icons.outputs.files_changed == 'true'}} - id: date - run: echo "::set-output name=date::$(date +'%d-%b-%Y')" + git add . + echo $(git status) - name: Push if: ${{ steps.fetch_icons.outputs.files_changed == 'true'}} run: | diff --git a/.github/workflows/on-pr.yml b/.github/workflows/on-pr.yml index 711c62da..96a5ab2b 100644 --- a/.github/workflows/on-pr.yml +++ b/.github/workflows/on-pr.yml @@ -1,4 +1,4 @@ -name: Pull request +name: CI - Pull Request on: pull_request diff --git a/.github/workflows/on-release.yml b/.github/workflows/on-release.yml index 5296c4b2..3d1741ad 100644 --- a/.github/workflows/on-release.yml +++ b/.github/workflows/on-release.yml @@ -1,4 +1,4 @@ -name: "Release" +name: CI - On Release on: workflow_dispatch: diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml index 8dc67ccc..95b49d32 100644 --- a/.github/workflows/release-please.yml +++ b/.github/workflows/release-please.yml @@ -1,3 +1,5 @@ +name: CI - On Main + on: push: branches: @@ -7,8 +9,6 @@ permissions: contents: write pull-requests: write -name: release-please - jobs: release-please: runs-on: ubuntu-latest diff --git a/testFile.txt b/testFile.txt new file mode 100644 index 00000000..e69de29b