Skip to content

Commit

Permalink
Merge pull request tonynguyenit18#3 from tonynguyenit18/test/add-most…
Browse files Browse the repository at this point in the history
…-recent-merged-branch-name-feature-test-to-remote-action

test: add most recent merged branch name feature using remote action tonynguyenit18/github-action-custom-vars@v1
  • Loading branch information
tonynguyenit18 authored May 15, 2021
2 parents cebc495 + 91e71df commit 472b6b4
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 8 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/recentMergedBranchName.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
name: "Log RECENT_MERGED_BRANCH_NAME using tonynguyenit18/github-action-custom-vars@v1"
on: push

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: tonynguyenit18/github-action-custom-vars@v1
- run: echo $RECENT_MERGED_BRANCH_NAME
2 changes: 1 addition & 1 deletion .github/workflows/testRecentMergedBranchName.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: "Log RECENT_MERGED_BRANCH_NAME"
name: "Log RECENT_MERGED_BRANCH_NAME using direct action"
on: push

jobs:
Expand Down
3 changes: 2 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{
"editor.formatOnSave": true
"editor.formatOnSave": true,
"git.ignoreLimitWarning": true
}
12 changes: 6 additions & 6 deletions action.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: 'Github action branch name'
description: 'Export branch name in some special case as environment variables'
name: "Github action custom vars"
description: "Export git information via custom vars in some special case where github action workflow does not proved"
branding:
icon: 'git-branch'
color: 'orange'
icon: "git-branch"
color: "orange"
runs:
using: 'node12'
main: 'dist/index.js'
using: "node12"
main: "dist/index.js"

0 comments on commit 472b6b4

Please sign in to comment.