Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use raw git commands #10

Merged
merged 5 commits into from
Feb 28, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.

Loading