aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in>2023-04-23 18:52:24 +0500
committerAnna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in>2023-04-23 19:13:55 +0500
commit03d995f606c333b0bc0f69e1211e17cff47ac108 (patch)
tree991daf57c8a4cc62811488fc23131b14167b5fcf /.github/workflows
parentdev-python/python-telegram-bot: add version 20.2 (diff)
downloadguru-03d995f606c333b0bc0f69e1211e17cff47ac108.tar.gz
guru-03d995f606c333b0bc0f69e1211e17cff47ac108.tar.bz2
guru-03d995f606c333b0bc0f69e1211e17cff47ac108.zip
.github/workflows/emails.yml: clone full repo
Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in>
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/emails.yml22
1 files changed, 13 insertions, 9 deletions
diff --git a/.github/workflows/emails.yml b/.github/workflows/emails.yml
index f03ca57dd..7ce288f2a 100644
--- a/.github/workflows/emails.yml
+++ b/.github/workflows/emails.yml
@@ -19,31 +19,35 @@ jobs:
workflow_id: 'emails.yml'
github_token: ${{ secrets.GITHUB_TOKEN }}
- - name: Checkout compare ref
- uses: actions/checkout@v3
- with:
- ref: ${{ steps.last_successful_commit.outputs.commit_hash }}
-
- - run: git submodule deinit --all
-
- - name: Checkout code
+ - name: Checkout repo
uses: actions/checkout@v3
with:
ref: dev
+ fetch-depth: 0
- uses: actions/setup-python@v3
with:
python-version: 3.x
+ - name: Validate compare commit
+ run: |
+ if git rev-parse --verify "${{ steps.last_successful_commit.outputs.commit_hash }}^{commit}"; then
+ echo "is_commit_valid=true" >> ${GITHUB_ENV}
+ else
+ echo "is_commit_valid=false" >> ${GITHUB_ENV}
+ fi
+
- name: Get changed files
id: changed-files
- uses: tj-actions/changed-files@v18.6
+ if: ${{ fromJSON(env.is_commit_valid) }}
+ uses: tj-actions/changed-files@v35
with:
base_sha: ${{ steps.last_successful_commit.outputs.commit_hash }}
files: |
**/metadata.xml
- name: Check Emails against bugzilla
+ if: ${{ fromJSON(env.is_commit_valid) }}
run: |
python ./scripts/email-checker.py ${{ steps.changed-files.outputs.all_changed_files }}