From e27190ca6261c74e83c9538a07b15b7a6c8f6341 Mon Sep 17 00:00:00 2001 From: Christian de Jonge Date: Tue, 14 May 2024 14:22:20 +0200 Subject: [PATCH] Update pipelines --- .github/workflows/project_automations.yml | 10 +++---- .github/workflows/publish_isar_base_image.yml | 8 +++--- .github/workflows/pythonpackage.yml | 4 +-- .github/workflows/pythonpublish.yml | 4 +-- .github/workflows/stale.yml | 27 +++++++++---------- 5 files changed, 26 insertions(+), 27 deletions(-) diff --git a/.github/workflows/project_automations.yml b/.github/workflows/project_automations.yml index 44b51c0a..7efdb7b6 100644 --- a/.github/workflows/project_automations.yml +++ b/.github/workflows/project_automations.yml @@ -19,7 +19,7 @@ jobs: if: github.event_name == 'issues' && github.event.action == 'opened' || github.event.action == 'reopened' steps: - name: 'Move issue to "Todo"' - uses: leonsteinhaeuser/project-beta-automations@v1.0.2 + uses: leonsteinhaeuser/project-beta-automations@v2.1.0 with: gh_token: ${{ secrets.MY_GITHUB_TOKEN }} organization: equinor @@ -32,7 +32,7 @@ jobs: if: github.event_name == 'issues' && github.event.action == 'closed' steps: - name: 'Moved issue to "Done"' - uses: leonsteinhaeuser/project-beta-automations@v1.0.2 + uses: leonsteinhaeuser/project-beta-automations@v2.1.0 with: gh_token: ${{ secrets.MY_GITHUB_TOKEN }} organization: equinor @@ -45,7 +45,7 @@ jobs: if: github.event_name == 'pull_request' && github.event.action == 'opened' || github.event.action == 'reopened' || github.event.action == 'review_requested' steps: - name: 'Move PR to "In Progress"' - uses: leonsteinhaeuser/project-beta-automations@v1.0.2 + uses: leonsteinhaeuser/project-beta-automations@v2.1.0 with: gh_token: ${{ secrets.MY_GITHUB_TOKEN }} organization: equinor @@ -58,7 +58,7 @@ jobs: if: github.event_name == 'pull_request' && github.event.action == 'ready_for_review' steps: - name: 'Move PR to "Review"' - uses: leonsteinhaeuser/project-beta-automations@v1.0.2 + uses: leonsteinhaeuser/project-beta-automations@v2.1.0 with: gh_token: ${{ secrets.MY_GITHUB_TOKEN }} organization: equinor @@ -71,7 +71,7 @@ jobs: if: github.event_name == 'pull_request' && github.event.action == 'closed' steps: - name: 'Move PR to "Done"' - uses: leonsteinhaeuser/project-beta-automations@v1.0.2 + uses: leonsteinhaeuser/project-beta-automations@v2.1.0 with: gh_token: ${{ secrets.MY_GITHUB_TOKEN }} organization: equinor diff --git a/.github/workflows/publish_isar_base_image.yml b/.github/workflows/publish_isar_base_image.yml index 64137fe6..cb3d6429 100644 --- a/.github/workflows/publish_isar_base_image.yml +++ b/.github/workflows/publish_isar_base_image.yml @@ -27,10 +27,10 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Log in to the Container registry - uses: docker/login-action@v2 + uses: docker/login-action@v3 with: registry: ${{ env.REGISTRY }} username: ${{ github.actor }} @@ -38,12 +38,12 @@ jobs: - name: Extract metadata (tags, labels) for Docker id: meta - uses: docker/metadata-action@v4 + uses: docker/metadata-action@v5 with: images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} - name: Build and push Docker image - uses: docker/build-push-action@v4 + uses: docker/build-push-action@v5 with: context: . file: Dockerfile diff --git a/.github/workflows/pythonpackage.yml b/.github/workflows/pythonpackage.yml index 43a106d9..16e5935d 100644 --- a/.github/workflows/pythonpackage.yml +++ b/.github/workflows/pythonpackage.yml @@ -17,10 +17,10 @@ jobs: python-version: ["3.11", "3.12"] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v3 + uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} diff --git a/.github/workflows/pythonpublish.yml b/.github/workflows/pythonpublish.yml index a3a7b941..d404594b 100644 --- a/.github/workflows/pythonpublish.yml +++ b/.github/workflows/pythonpublish.yml @@ -8,9 +8,9 @@ jobs: deploy: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Set up Python - uses: actions/setup-python@v3 + uses: actions/setup-python@v5 with: python-version: "3.x" - name: Install dependencies diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml index 84a829d7..e6281983 100644 --- a/.github/workflows/stale.yml +++ b/.github/workflows/stale.yml @@ -8,26 +8,25 @@ name: Mark stale issues and pull requests on: workflow_dispatch: schedule: - - cron: '35 8 * * *' + - cron: "35 8 * * *" jobs: stale: - runs-on: ubuntu-latest permissions: issues: write pull-requests: write steps: - - name: Close Stale Issues - uses: actions/stale@v9.0.0 - with: - repo-token: ${{ secrets.STALE_ISSUE_TOKEN }} - stale-issue-message: 'This issue has automatically been marked as stale as there has been no activity for 60 days.' - stale-pr-message: 'This pull request has automatically been marked as stale as there has been no activity for 30 days.' - stale-issue-label: 'stale' - stale-pr-label: 'stale' - close-issue-message: 'This issue has been closed automatically due to a lack of activity.' - close-pr-message: 'This pull request has been closed automatically due to a lack of activity.' - days-before-pr-stale: 30 - days-before-close: -1 + - name: Close Stale Issues + uses: actions/stale@v9 + with: + repo-token: ${{ secrets.STALE_ISSUE_TOKEN }} + stale-issue-message: "This issue has automatically been marked as stale as there has been no activity for 60 days." + stale-pr-message: "This pull request has automatically been marked as stale as there has been no activity for 30 days." + stale-issue-label: "stale" + stale-pr-label: "stale" + close-issue-message: "This issue has been closed automatically due to a lack of activity." + close-pr-message: "This pull request has been closed automatically due to a lack of activity." + days-before-pr-stale: 30 + days-before-close: -1