Skip to content

Commit

Permalink
Merge pull request #21 from emibcn/18-bump-github-badge-action
Browse files Browse the repository at this point in the history
#18 - Bump `github-badge-action`
  • Loading branch information
emibcn authored Dec 9, 2022
2 parents 3697e61 + 0b1e922 commit 3975284
Show file tree
Hide file tree
Showing 11 changed files with 5,842 additions and 1,213 deletions.
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

0 comments on commit 3975284

Please sign in to comment.