-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: use semantic-release to do all the work
- Loading branch information
Ahmad Nassri
committed
Sep 4, 2022
1 parent
9295373
commit eaa8caa
Showing
2 changed files
with
8 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -88,31 +88,7 @@ jobs: | |
steps: | ||
- uses: actions/[email protected] | ||
with: | ||
token: ${{ secrets.GH_TOKEN }} | ||
|
||
- id: release-check | ||
uses: ahmadnassri/[email protected] | ||
with: | ||
dry: true | ||
config: ${{ github.workspace }}/.semantic.json | ||
env: | ||
GITHUB_TOKEN: ${{ github.token }} | ||
|
||
- id: bump | ||
name: update action.yml | ||
if: ${{ steps.release-check.outputs.release-version }} | ||
run: | | ||
sed -i 's/${{ needs.metadata.outputs.image-name }}:.*/${{ needs.metadata.outputs.image-name }}:${{ steps.release-check.outputs.release-version }}/g' action.yml | ||
[[ `git status --porcelain --untracked-files=no` ]] && echo '::set-output name=changed::yes' || exit 0 | ||
- name: commit changes | ||
if: ${{ steps.bump.outputs.changed == 'yes' }} | ||
run: | | ||
git config user.name github-actions | ||
git config user.email [email protected] | ||
git add action.yml | ||
git commit -m "chore: version bump" | ||
git push | ||
submodules: true | ||
|
||
- id: release | ||
uses: ahmadnassri/[email protected] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters