Skip to content

feat: simplify the input interface #48

feat: simplify the input interface

feat: simplify the input interface #48

Workflow file for this run

name: ci
on:
push:
branches: [main]
pull_request:
workflow_dispatch:
permissions:
contents: write
pull-requests: write
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
# A test for the basic CLI usage.
- name: Running a single test
uses: ./
with:
command: run ./test.yml
# The generated report must be available to the rest of the workflow.
- name: Generating the report
uses: ./
with:
command: run ./test.yml --output ./report.json
- name: Access report
run: |
if [ ! -f ./report.json ]; then
echo "The generated report JSON file couldn't be accessed."
exit 1
fi
release:
if: github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
needs: [test]
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Release
id: release
uses: google-github-actions/release-please-action@v3
with:
release-type: node
package-name: action-run
pull-request-title-pattern: "chore: release${component} ${version}"
- name: Update release tags
if: ${{ steps.release.outputs.release_created }}
run: |
git config user.name artillery-bot
git config user.email [email protected]
git remote add gh-token "https://${{ secrets.GITHUB_TOKEN }}@github.com/google-github-actions/release-please-action.git"
git tag -d v${{ steps.release.outputs.major }} || true
git tag -d v${{ steps.release.outputs.major }}.${{ steps.release.outputs.minor }} || true
git push origin :v${{ steps.release.outputs.major }} || true
git push origin :v${{ steps.release.outputs.major }}.${{ steps.release.outputs.minor }} || true
git tag -a v${{ steps.release.outputs.major }} -m "Release v${{ steps.release.outputs.major }}"
git tag -a v${{ steps.release.outputs.major }}.${{ steps.release.outputs.minor }} -m "Release v${{ steps.release.outputs.major }}.${{ steps.release.outputs.minor }}"
git push origin v${{ steps.release.outputs.major }}
git push origin v${{ steps.release.outputs.major }}.${{ steps.release.outputs.minor }}