Skip to content

Commit

Permalink
Use raw git commands (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
fregante committed Feb 28, 2023
1 parent 2e28d51 commit ed7e691
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 14,461 deletions.
11 changes: 2 additions & 9 deletions .github/workflows/action-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,8 @@ jobs:
Release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 50
- run: git tag ${{ github.event.inputs.Version }}
- uses: fregante/release-with-changelog@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
exclude: true
template: '{commits}'
- uses: actions/checkout@v3
- run: gh release ${{ github.event.inputs.Version }} --generate-notes
- name: Update major tag
run: |
MAJOR=$(echo ${{ github.event.inputs.Version }} | sed 's/\..*//')
Expand Down
15 changes: 2 additions & 13 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,24 +1,13 @@
name: CI
on:
pull_request:
push:
branches:
- '*'
on: push

jobs:
Lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: npm ci
- run: npx xo

Test:
name: Live Action Test
runs-on: ubuntu-latest
if: ${{ github.event_name == 'push' }}
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Run Action
uses: ./
- name: Test the action by creating and deleting a commit
Expand Down
14 changes: 10 additions & 4 deletions action.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,16 @@
name: Setup GIT user
description: GitHub Action that sets the git user and email to enable commiting
name: Setup Git user
description: Sets the Git user and email to enable committing
author: Federico Brigante
branding:
icon: chevron-up
color: yellow

runs:
using: node16
main: index.js
using: composite
steps:
- shell: bash
run: |
git config --global user.name "GitHub Actions"
- shell: bash
run: |
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
11 changes: 0 additions & 11 deletions index.js

This file was deleted.

0 comments on commit ed7e691

Please sign in to comment.