From a6354138d97a6f44ec49a003e6382e7c5364d352 Mon Sep 17 00:00:00 2001 From: ismay Date: Tue, 2 Jul 2024 16:15:18 +0200 Subject: [PATCH] ci: refer to workflows by version --- .github/workflows/comment-and-close.yml | 2 +- .github/workflows/deploy-pr.yml | 2 +- .github/workflows/deploy-production.yml | 2 +- .github/workflows/lint-pr-title.yml | 2 +- .github/workflows/test-and-release.yml | 10 +++++----- 5 files changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/comment-and-close.yml b/.github/workflows/comment-and-close.yml index d5acbf2b..e921371e 100644 --- a/.github/workflows/comment-and-close.yml +++ b/.github/workflows/comment-and-close.yml @@ -4,5 +4,5 @@ on: jobs: comment-and-close: - uses: dhis2/workflows-test/.github/workflows/comment-and-close.yml@main + uses: dhis2/workflows-test/.github/workflows/comment-and-close.yml@v1 if: !contains(github.event.issues.sender.login , fromJson('["dhis2-bot", "kodiakhq", "dependabot"]')) diff --git a/.github/workflows/deploy-pr.yml b/.github/workflows/deploy-pr.yml index 52580080..7797be5c 100644 --- a/.github/workflows/deploy-pr.yml +++ b/.github/workflows/deploy-pr.yml @@ -9,6 +9,6 @@ concurrency: jobs: deploy: - uses: dhis2/workflows-test/.github/workflows/deploy-pr.yml@main + uses: dhis2/workflows-test/.github/workflows/deploy-pr.yml@v1 if: '!github.event.pull_request.head.repo.fork' secrets: inherit diff --git a/.github/workflows/deploy-production.yml b/.github/workflows/deploy-production.yml index f784488a..d780ef48 100644 --- a/.github/workflows/deploy-production.yml +++ b/.github/workflows/deploy-production.yml @@ -11,7 +11,7 @@ concurrency: jobs: deploy: - uses: dhis2/workflows-test/.github/workflows/deploy-production.yml@main + uses: dhis2/workflows-test/.github/workflows/deploy-production.yml@v1 secrets: inherit with: branch: master diff --git a/.github/workflows/lint-pr-title.yml b/.github/workflows/lint-pr-title.yml index c5e67c0e..d520a8c0 100644 --- a/.github/workflows/lint-pr-title.yml +++ b/.github/workflows/lint-pr-title.yml @@ -10,4 +10,4 @@ concurrency: jobs: lint-pr-title: - uses: dhis2/workflows-test/.github/workflows/lint-pr-title.yml@main + uses: dhis2/workflows-test/.github/workflows/lint-pr-title.yml@v1 diff --git a/.github/workflows/test-and-release.yml b/.github/workflows/test-and-release.yml index 8b1e6127..35530b69 100644 --- a/.github/workflows/test-and-release.yml +++ b/.github/workflows/test-and-release.yml @@ -9,19 +9,19 @@ concurrency: jobs: lint-commits: - uses: dhis2/workflows-test/.github/workflows/lint-commits.yml@main + uses: dhis2/workflows-test/.github/workflows/lint-commits.yml@v1 lint: - uses: dhis2/workflows-test/.github/workflows/lint.yml@main + uses: dhis2/workflows-test/.github/workflows/lint.yml@v1 test: - uses: dhis2/workflows-test/.github/workflows/test.yml@main + uses: dhis2/workflows-test/.github/workflows/test.yml@v1 e2e: - uses: dhis2/workflows-test/.github/workflows/e2e.yml@main + uses: dhis2/workflows-test/.github/workflows/e2e.yml@v1 # Skips forks and dependabot PRs if: '!github.event.push.repository.fork' secrets: inherit release: needs: [lint, test, e2e] - uses: dhis2/workflows-test/.github/workflows/release.yml@main + uses: dhis2/workflows-test/.github/workflows/release.yml@v1 # Skips forks and dependabot PRs if: '!github.event.push.repository.fork' secrets: inherit