Skip to content

Commit

Permalink
test: logging action output
Browse files Browse the repository at this point in the history
  • Loading branch information
thelukewalton committed Jul 8, 2024
1 parent 69e3950 commit 97a7852
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 23 deletions.
46 changes: 27 additions & 19 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/on-pr.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Pull request
name: CI - Pull Request

on: pull_request

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/on-release.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: "Release"
name: CI - On Release

on:
workflow_dispatch:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
name: CI - On Main

on:
push:
branches:
Expand All @@ -7,8 +9,6 @@ permissions:
contents: write
pull-requests: write

name: release-please

jobs:
release-please:
runs-on: ubuntu-latest
Expand Down
Empty file added testFile.txt
Empty file.

0 comments on commit 97a7852

Please sign in to comment.