Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#18 - Bump github-badge-action #21

Merged
merged 2 commits into from
Dec 9, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,18 @@ jobs:
# Get current banch name to use it as dest directory
- name: Extract branch name
shell: bash
run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})"
run: echo "branch=${GITHUB_REF#refs/heads/}" >> "${GITHUB_OUTPUT}"
id: extract_branch

- name: Prepare environment
id: coverage
run: |
# Generates a GitHub Workflow output named `lines` with a coverage value
echo "##[set-output name=lines;]${COVERAGE}"
echo "lines=${COVERAGE}" >> "${GITHUB_OUTPUT}"

# Output values to be used by other steps
echo "##[set-output name=path;]${BADGE_PATH}"
echo "##[set-output name=branch;]${BRANCH}"
echo "path=${BADGE_PATH}" >> "${GITHUB_OUTPUT}"
echo "branch=${BRANCH}" >> "${GITHUB_OUTPUT}"
env:
COVERAGE: 53.5%
BADGE_PATH: ${{ steps.extract_branch.outputs.branch }}/test-badge.svg
Expand Down
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,5 @@ npm-debug.log*
yarn-debug.log*
yarn-error.log*


# Packaged file
*.tgz
2 changes: 2 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,5 @@
Dockerfile
docker-compose.yml
*.tgz
.deepsource.toml
badge-action.modern.mjs.map
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ USER root
RUN \
apt-get update && \
apt-get install -y python3 gcc && \
apt-get clean
apt-get clean && \
rm -Rf /var/lib/apt/lists/

USER node
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,4 @@ outputs:
description: 'The badge SVG contents'
runs:
using: 'node16'
main: 'dist/index.js'
main: 'dist/badge-action.modern.mjs'
Loading