Skip to content

Commit

Permalink
GH action
Browse files Browse the repository at this point in the history
  • Loading branch information
GeorgWa committed Jul 19, 2023
1 parent 9c9764b commit 3f99327
Showing 1 changed file with 19 additions and 20 deletions.
39 changes: 19 additions & 20 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
on:
# push:
# branches: [ main ]
push:
branches: [ main ]
workflow_dispatch:


Expand All @@ -24,22 +24,21 @@ jobs:
run: |
cd misc
. ./check_version.sh
echo "$current_version"
echo "version=$current_version" >> $GITHUB_OUTPUT
- name: Print version
shell: bash -l {0}
run: |
echo "Version: ${{ steps.master_version_bumped.outputs.version }}"
Print_Version:
runs-on: ubuntu-latest
needs: Version_Bumped
steps:
- name: Print version
shell: bash -l {0}
run: |
echo "Version: ${{ needs.Version_Bumped.outputs.version }}"
- name: Set color
id: random-color-generator
run: echo "SELECTED_COLOR=green" >> $GITHUB_OUTPUT
- name: Get color
run: echo "The selected color is ${{ steps.random-color-generator.outputs.SELECTED_COLOR }}"
Create_Draft_On_GitHub:
runs-on: ubuntu-latest
needs: Version_Bumped
outputs:
upload_url: ${{ steps.draft_release.outputs.upload_url }}
steps:
- name: Draft Release
id: draft_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
with:
tag_name: ${{ needs.Version_Bumped.outputs.version }}
release_name: Release version ${{ needs.Version_Bumped.outputs.version }}
draft: true
prerelease: false

0 comments on commit 3f99327

Please sign in to comment.