Skip to content

Commit

Permalink
Align files (#20)
Browse files Browse the repository at this point in the history
Co-authored-by: github-actions <[email protected]>
  • Loading branch information
architectbot and actions-user authored Sep 30, 2022
1 parent 2e9c4af commit f0ba9a7
Show file tree
Hide file tree
Showing 9 changed files with 24 additions and 18 deletions.
2 changes: 1 addition & 1 deletion .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# DO NOT EDIT. Generated with:
#
# devctl@5.9.0
# devctl@5.10.0
#
version: 2
updates:
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/zz_generated.add-team-labels.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Add Issue to Project when assigned
name: Add appropriate labels to issue

on:
issues:
Expand All @@ -9,10 +9,10 @@ jobs:
name: Get yaml config of GS users
runs-on: ubuntu-latest
steps:
- name: Fetch issue templates
- name: Get user-mapping
run: |
mkdir -p artifacts
wget --header "Authorization: token ${{ github.token }}" \
wget --header "Authorization: token ${{ secrets.ISSUE_AUTOMATION }}" \
-O artifacts/users.yaml \
https://raw.githubusercontent.com/giantswarm/github/master/tools/issue-automation/user-mapping.yaml
- name: Upload Artifact
Expand Down Expand Up @@ -48,6 +48,6 @@ jobs:
if: ${{ env.LABEL != '' }}
uses: actions-ecosystem/action-add-labels@v1
with:
github-token: ${{ secrets.ISSUE_AUTOMATION }}
github_token: ${{ secrets.ISSUE_AUTOMATION }}
labels: |
${{ env.LABEL }}
16 changes: 10 additions & 6 deletions .github/workflows/zz_generated.add-to-project-board.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@ name: Add Issue to Project when assigned

on:
issues:
types: [assigned]
types:
- assigned
- labeled

jobs:
build_user_list:
Expand All @@ -12,7 +14,7 @@ jobs:
- name: Get user-mapping
run: |
mkdir -p artifacts
wget --header "Authorization: token ${{ github.token }}" \
wget --header "Authorization: token ${{ secrets.ISSUE_AUTOMATION }}" \
-O artifacts/users.yaml \
https://raw.githubusercontent.com/giantswarm/github/master/tools/issue-automation/user-mapping.yaml
- name: Upload Artifact
Expand All @@ -24,7 +26,7 @@ jobs:
- name: Get label-mapping
run: |
mkdir -p artifacts
wget --header "Authorization: token ${{ github.token }}" \
wget --header "Authorization: token ${{ secrets.ISSUE_AUTOMATION }}" \
-O artifacts/labels.yaml \
https://raw.githubusercontent.com/giantswarm/github/master/tools/issue-automation/label-mapping.yaml
- name: Upload Artifact
Expand All @@ -38,6 +40,7 @@ jobs:
name: Add issue to personal board
runs-on: ubuntu-latest
needs: build_user_list
if: github.event.action == 'assigned'
steps:
- uses: actions/download-artifact@v3
id: download-users
Expand All @@ -60,20 +63,21 @@ jobs:
github-token: ${{ secrets.ISSUE_AUTOMATION }}

add_to_team_board:
name: Add issue to personal board
name: Add issue to team board
runs-on: ubuntu-latest
needs: build_user_list
if: github.event.action == 'labeled'
steps:
- uses: actions/download-artifact@v3
id: download-labels
with:
name: labels
- name: Find team board based on label
run: |
event_label=$(cat $GITHUB_EVENT_PATH | jq -r .label | tr '[:upper:]' '[:lower:]')
event_label=$(cat $GITHUB_EVENT_PATH | jq -r .label.name | tr '[:upper:]' '[:lower:]')
echo "Issue labelled with: ${event_label}"
BOARD=($(cat ${{steps.download-users.outputs.download-path}}/labels.yaml | tr '[:upper:]' '[:lower:]' | yq ".${event_label}.projectBoard"))
BOARD=($(cat ${{steps.download-labels.outputs.download-path}}/labels.yaml | tr '[:upper:]' '[:lower:]' | yq ".${event_label}.projectboard"))
echo "Team board URL: ${BOARD}"
echo "BOARD=${BOARD}" >> $GITHUB_ENV
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/zz_generated.create_release.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# DO NOT EDIT. Generated with:
#
# devctl@5.9.0
# devctl@5.10.0
#
name: Create Release
on:
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/zz_generated.create_release_pr.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# DO NOT EDIT. Generated with:
#
# devctl@5.9.0
# devctl@5.10.0
#
name: Create Release PR
on:
Expand Down Expand Up @@ -95,7 +95,9 @@ jobs:
version_major=$(echo "${version}" | cut -d "." -f 1)
version_minor=$(echo "${version}" | cut -d "." -f 2)
version_patch=$(echo "${version}" | cut -d "." -f 3)
if [[ $version_minor = 0 && $version_patch = 0 ]]; then
# This will help us detect versions with suffixes as majors, i.e 3.0.0-alpha1.
# Even though it's a pre-release, it's still a major.
if [[ $version_minor = 0 && $version_patch =~ ^0.* ]]; then
echo "::set-output name=is_major::true"
fi
fi
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/zz_generated.gitleaks.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# DO NOT EDIT. Generated with:
#
# devctl@5.9.0
# devctl@5.10.0
#
name: gitleaks

Expand Down
2 changes: 1 addition & 1 deletion .github/zz_generated.windows-code-signing.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

# DO NOT EDIT. Generated with:
#
# devctl@5.9.0
# devctl@5.10.0
#

APPLICATION=$1
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# DO NOT EDIT. Generated with:
#
# devctl@5.9.0
# devctl@5.10.0
#

include Makefile.*.mk
Expand Down
2 changes: 1 addition & 1 deletion Makefile.gen.go.mk
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# DO NOT EDIT. Generated with:
#
# devctl@5.9.0
# devctl@5.10.0
#

PACKAGE_DIR := ./bin-dist
Expand Down

0 comments on commit f0ba9a7

Please sign in to comment.