Skip to content

Commit 117128d

Browse files
committed
Code cleanup
1 parent a0ab34b commit 117128d

File tree

2 files changed

+8
-20
lines changed

2 files changed

+8
-20
lines changed

.github/workflows/build.yml

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -44,14 +44,9 @@ jobs:
4444
with:
4545
fetch-depth: 5
4646

47-
- name: Common Settings
48-
run: |
49-
# Hide "You are in 'detached HEAD' state" message
50-
git config --global advice.detachedHead false
51-
5247
- name: Get Composer Cache Directory
5348
id: composer-cache
54-
run: echo "::set-output name=dir::$(composer config cache-files-dir)"
49+
run: echo ::set-output name=dir::$(composer config cache-files-dir)
5550

5651
- name: Setup Composer Cache
5752
uses: actions/cache@v1
@@ -64,18 +59,14 @@ jobs:
6459
${{ runner.os }}-
6560

6661
- name: Setup Composer Token
67-
run: |
68-
# To increase the GitHub rate limit we're use GitHub authentication
69-
if [ -n "${{ secrets.COMPOSER_TOKEN }}" ]; then
70-
composer config github-oauth.github.com "${{ secrets.COMPOSER_TOKEN }}"
71-
fi
62+
if: ${{ secrets.COMPOSER_TOKEN }}
63+
run: composer config github-oauth.github.com ${{ secrets.COMPOSER_TOKEN }}
7264

7365
- name: Install Project Dependencies
7466
run: composer install --prefer-dist --no-interaction --no-ansi --no-progress --no-suggest
7567

7668
- name: Fast Commands Test
77-
run: |
78-
./example Hello World
69+
run: ./example Hello World
7970

8071
- name: Success Reporting
8172
if: success()

.github/workflows/release.yml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141

4242
- name: Get Composer Cache Directory
4343
id: composer-cache
44-
run: echo "::set-output name=dir::$(composer config cache-files-dir)"
44+
run: echo ::set-output name=dir::'$(composer config cache-files-dir)'
4545

4646
- name: Setup Composer Cache
4747
uses: actions/cache@v1
@@ -53,12 +53,9 @@ jobs:
5353
${{ runner.os }}-composer-
5454
${{ runner.os }}-
5555

56-
- name: Setup GitHub Token
57-
run: |
58-
# To increase the GitHub rate limit we're use GitHub authentication
59-
if [ -n "${{ secrets.COMPOSER_TOKEN }}" ]; then
60-
composer config github-oauth.github.com "${{ secrets.COMPOSER_TOKEN }}"
61-
fi
56+
- name: Setup Composer Token
57+
if: ${{ secrets.COMPOSER_TOKEN }}
58+
run: composer config github-oauth.github.com ${{ secrets.COMPOSER_TOKEN }}
6259

6360
- name: Install Project Dependencies
6461
run: composer install --prefer-dist --no-interaction --no-ansi --no-progress --no-suggest

0 commit comments

Comments
 (0)