Skip to content

Commit

Permalink
ci: use $GITHUB_OUTPUT
Browse files Browse the repository at this point in the history
  • Loading branch information
kilee1230 committed Dec 23, 2023
1 parent dbda662 commit 9d7ba36
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,30 +16,30 @@ jobs:
run: |
if [ "${{ github.event_name }}" == 'push' ] && [ "${{ github.repository }}" != "${{ github.actor }}/express-api-template" ]; then
echo "Stopping job because it's a repository creation event."
echo "skip_ci=true" >> "$GITHUB_STATE"
echo "skip_ci=true" >> $GITHUB_OUTPUT
else
echo "Proceeding with the job."
echo "skip_ci=false" >> "$GITHUB_STATE"
echo "skip_ci=false" >> $GITHUB_OUTPUT
fi
- name: Checkout code and Use Node.js
if: ${{ "$skip_ci" == "false" }}
if: ${{ $GITHUB_OUTPUT == "false" }}
uses: actions/checkout@v4

- name: Use Node.js ${{ matrix.node-version }}
if: ${{ "$skip_ci" == "false" }}
if: ${{ $GITHUB_OUTPUT == "false" }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}

- name: Install dependencies
if: ${{ "$skip_ci" == "false" }}
if: ${{ $GITHUB_OUTPUT == "false" }}
run: yarn install

- name: Lint
if: ${{ "$skip_ci" == "false" }}
if: ${{ $GITHUB_OUTPUT == "false" }}
run: yarn lint

- name: Test and Coverage
if: ${{ "$skip_ci" == "false" }}
if: ${{ $GITHUB_OUTPUT == "false" }}
run: yarn test:coverage

0 comments on commit 9d7ba36

Please sign in to comment.