File tree Expand file tree Collapse file tree 3 files changed +34
-3
lines changed Expand file tree Collapse file tree 3 files changed +34
-3
lines changed Original file line number Diff line number Diff line change @@ -95,11 +95,32 @@ jobs:
95
95
96
96
See details at https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}
97
97
98
+ - name : Check if email is encoded
99
+ id : check_email_encryption
100
+ run : |
101
+ if [[ "$EMAIL" != *"@"* ]]; then
102
+ encoded="true"
103
+ else
104
+ encoded="false"
105
+ fi
106
+ echo "encoded=$encoded" >> $GITHUB_OUTPUT
107
+ env :
108
+ EMAIL : ${{ steps.extract.outputs.email }}
109
+
110
+ - name : Decode email
111
+ id : decode_email
112
+ uses : ./.github/actions/encode-decode-string
113
+ with :
114
+ input_string : ${{ steps.extract.outputs.email }}
115
+ encryption_key : ${{ secrets.STRING_ENCRYPTION_KEY }}
116
+ operation : " decode"
117
+ skip : ${{ steps.check_email_encryption.outputs.encoded == 'false' }}
118
+
98
119
- name : Send mail (completed)
99
120
id : send_email
100
121
uses : ./.github/actions/send-email
101
122
with :
102
- to : ${{ steps.extract .outputs.email }}
123
+ to : ${{ steps.decode_email .outputs.output_string }}
103
124
mail_server_username : ${{secrets.MAIL_USERNAME}}
104
125
mail_server_password : ${{secrets.MAIL_PASSWORD}}
105
126
instance_name : ${{ steps.define.outputs.instance_name }}
Original file line number Diff line number Diff line change 32
32
33
33
add_label="status:$status_lowercase"
34
34
35
- remove_labels=$(gh issue view $issue_number --json labels \
36
- --jq '[.labels[].name | select(test("^status:")?)] | join(",")')
35
+ remove_labels=$(gh issue view $issue_number --json labels | \
36
+ jq \
37
+ -r \
38
+ --arg add_label "$add_label" \
39
+ -c '[.labels[].name | select(test("^status:")?) | select(. != $add_label)] | join(",")')
37
40
38
41
echo "Updating issue $issue_number adding label [$add_label] and removing labels [$remove_labels]"
39
42
Original file line number Diff line number Diff line change @@ -31,3 +31,10 @@ repos:
31
31
- id : check-github-actions
32
32
- id : check-github-workflows
33
33
- id : check-readthedocs
34
+
35
+ - repo : https://github.com/astral-sh/ruff-pre-commit
36
+ rev : " v0.5.7"
37
+ hooks :
38
+ - id : ruff
39
+ args : [--fix, --show-fixes]
40
+ - id : ruff-format
You can’t perform that action at this time.
0 commit comments