Skip to content

Commit

Permalink
Merge pull request #65 from k1LoW/test-on-container
Browse files Browse the repository at this point in the history
Run gh-setup on container
  • Loading branch information
k1LoW authored Feb 27, 2023
2 parents 1300ebc + dabbc9f commit e87b200
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 2 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,3 +68,29 @@ jobs:
- name: Run setup as a action (2/2)
run: tbls version
shell: bash

job-on-container-test:
name: Test on container
runs-on: ubuntu-latest
container:
image: debian:latest
env:
DEBUG: true
steps:
- name: Setup curl
run: apt-get update && apt-get install -y curl

- name: Check out source code
uses: actions/checkout@v3

- name: Run setup as a action (1/2)
uses: ./
with:
repo: k1LoW/tbls
force: true
strict: true
gh-setup-version: v1.0.1

- name: Run setup as a action (2/2)
run: tbls version
shell: bash
4 changes: 2 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,13 @@ runs:
steps:
-
id: install-gh-setup
run: cd '${{ github.action_path }}' && scripts/install-gh-setup.sh
run: ${GITHUB_ACTION_PATH}/scripts/install-gh-setup.sh
shell: bash
env:
GH_SETUP_GITHUB_TOKEN: ${{ inputs.github-token }}
GH_SETUP_GH_SETUP_VERSION: ${{ inputs.gh-setup-version }}
-
run: cd '${{ github.action_path }}' && scripts/run-gh-setup.sh
run: ${GITHUB_ACTION_PATH}/scripts/run-gh-setup.sh
shell: bash
env:
GH_SETUP_GITHUB_TOKEN: ${{ inputs.github-token }}
Expand Down

0 comments on commit e87b200

Please sign in to comment.