Skip to content

Commit 58ef209

Browse files
author
Mokhlesur Mahin
committed
update: workflow
1 parent 284268a commit 58ef209

File tree

2 files changed

+15
-15
lines changed

2 files changed

+15
-15
lines changed

.github/workflows/auto-release.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ jobs:
1515

1616
- name: Set Git Config
1717
run: |
18-
git config --global user.email "$"
19-
git config --global user.name "$"
18+
git config --global user.email "${{ secrets.USER_EMAIL }}"
19+
git config --global user.name "${{ secrets.USER_NAME }}"
2020
shell: bash
2121

2222
- name: Check for Existing Tags and Create
@@ -48,14 +48,14 @@ jobs:
4848
echo "::set-output name=new_tag::${new_tag_version}"
4949
fi
5050
env:
51-
GITHUB_TOKEN: $
51+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5252

5353
- name: Create Release
5454
uses: actions/create-release@v1
5555
env:
56-
GITHUB_TOKEN: $
56+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5757
with:
58-
tag_name: $
59-
release_name: Release $
58+
tag_name: ${{ steps.check_tags.outputs.new_tag }}
59+
release_name: Release ${{ steps.check_tags.outputs.new_tag }}
6060
body: |
61-
Get the Release Details__
61+
Get the Release Details__

.github/workflows/update-major.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,15 @@ jobs:
1313

1414
- name: Exit if the branch is not main
1515
run: |
16-
if [[ "$" != "refs/heads/main" ]]; then
16+
if [[ "${{ github.ref }}" != "refs/heads/main" ]]; then
1717
echo "Branch is not main, exiting."
1818
exit 1
1919
fi
2020
2121
- name: Set Git Config
2222
run: |
23-
git config --global user.email "$"
24-
git config --global user.name "$"
23+
git config --global user.email "${{ secrets.USER_EMAIL }}"
24+
git config --global user.name "${{ secrets.USER_NAME }}"
2525
shell: bash
2626

2727
- name: Check for Existing Tags and Create
@@ -54,14 +54,14 @@ jobs:
5454
echo "::set-output name=new_tag::${new_tag_version}"
5555
fi
5656
env:
57-
GITHUB_TOKEN: $
57+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5858

5959
- name: Create Release
6060
uses: actions/create-release@v1
6161
env:
62-
GITHUB_TOKEN: $
62+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6363
with:
64-
tag_name: $
65-
release_name: Release $
64+
tag_name: ${{ steps.check_tags.outputs.new_tag }}
65+
release_name: Release ${{ steps.check_tags.outputs.new_tag }}
6666
body: |
67-
Get the Release Details__
67+
Get the Release Details__

0 commit comments

Comments
 (0)