Skip to content

Commit

Permalink
Update pipelines
Browse files Browse the repository at this point in the history
  • Loading branch information
Christdej committed May 14, 2024
1 parent d2518ba commit e27190c
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 27 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/project_automations.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/publish_isar_base_image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,23 +27,23 @@ 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 }}
password: ${{ secrets.GITHUB_TOKEN }}

- 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
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/pythonpackage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/pythonpublish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
27 changes: 13 additions & 14 deletions .github/workflows/stale.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit e27190c

Please sign in to comment.