Skip to content

Commit

Permalink
CI fixes (#362)
Browse files Browse the repository at this point in the history
* fixed environment support

* Update .github/workflows/check_pr_label.yml

Co-authored-by: Joakim Sørensen <joasoe@gmail.com>

* use latest patch

Co-authored-by: Joakim Sørensen <joasoe@gmail.com>
  • Loading branch information
helto4real and ludeeus authored May 2, 2021
1 parent bc8b58e commit 116c976
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 8 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/check_pr_label.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Check valid labels
uses: jesusvasquez333/verify-pr-label-action@v1.4.0
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
valid-labels: 'pr:bugfix, pr: enhancement, pr: dependency-update, pr: new feature'
pull-request-number: ${{ github.event.pull_request.number }}
disable-reviews: true
run: |
labels=$(jq -r '.pull_request.labels[] | .name' ${{github.event_path }} | grep 'pr:')
if [[ ! $labels ]]; then
echo "::error::You need to provide one or more labels that starts with 'pr:'"
exit 1
fi
exit 0
2 changes: 1 addition & 1 deletion .github/workflows/ci_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
- name: 🥅 Install .Net 5
uses: actions/setup-dotnet@v1
with:
dotnet-version: '5.0.100' # SDK Version
dotnet-version: '5.0.x' # SDK Version

- name: 🔍 Enable problem matchers
run: echo "::add-matcher::.github/matchers/dotnet.json"
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/push_docker_dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ jobs:
deploy:
name: 📦 Deploy to Docker dev
runs-on: ubuntu-latest
environment: CI - release environment
steps:
- name: 📤 Checkout the repository
uses: actions/checkout@main
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/tags_docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ jobs:
deploy:
name: 📦 Deploy to Docker Hub
runs-on: ubuntu-latest
environment: CI - release environment
steps:
- name: 📤 Checkout the repository
uses: actions/checkout@main
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/tags_nuget.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ jobs:
deploy_nuget:
name: 📦 publish nuget packages
runs-on: ubuntu-latest
environment: CI - release environment
steps:
- name: 📤 Checkout the repository
uses: actions/checkout@main
Expand All @@ -25,7 +26,7 @@ jobs:
- name: 🥅 Install .Net 5
uses: actions/setup-dotnet@v1
with:
dotnet-version: '5.0.100' # SDK Version
dotnet-version: '5.0.x' # SDK Version

- name: 🔖 Set version number
run: |
Expand Down

0 comments on commit 116c976

Please sign in to comment.