Skip to content

Commit

Permalink
Merge pull request #99 from siketyan/build/composite-action
Browse files Browse the repository at this point in the history
build: Use composite action instead of docker
  • Loading branch information
siketyan authored May 27, 2023
2 parents 6520aa3 + 9a9803c commit 969e13a
Showing 1 changed file with 19 additions and 2 deletions.
21 changes: 19 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,22 @@ inputs:
description: 'An OAuth token to access to the repository as a bot.'
default: ${{ github.token }}
runs:
using: 'docker'
image: 'docker://ghcr.io/siketyan/loxcan@sha256:6d9b332528755dfbf664606a94bdb7106a65cff620ed2c0bee51fcf134f87160'
using: 'composite'
steps:
- shell: bash
run: |
pushd '${{ github.action_path }}' && composer i -n && popd
if [ "${{ inputs.report_enabled }}" = "true" ]; then
export LOXCAN_REPORTER_GITHUB="1"
export LOXCAN_REPORTER_GITHUB_OWNER="${{ inputs.owner }}"
export LOXCAN_REPORTER_GITHUB_REPO="${{ inputs.repo }}"
export LOXCAN_REPORTER_GITHUB_ISSUE_NUMBER="${{ inputs.issue_number }}"
export LOXCAN_REPORTER_GITHUB_TOKEN="${{ inputs.token }}"
export LOXCAN_REPORTER_GITHUB_USERNAME="github-actions[bot]"
fi
BRANCH_BASE="origin/${{ inputs.base }}"
BRANCH_HEAD="${{ github.sha }}"
${{ github.action_path }}/bin/loxcan "${BRANCH_BASE}" "${BRANCH_HEAD}"

0 comments on commit 969e13a

Please sign in to comment.