Skip to content

Commit 5aa78a9

Browse files
author
Dennis Labordus
committed
Fixed GitHub Actions.
Signed-off-by: Dennis Labordus <[email protected]>
1 parent a34f3e5 commit 5aa78a9

File tree

4 files changed

+31
-41
lines changed

4 files changed

+31
-41
lines changed

.github/dependabot.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# SPDX-FileCopyrightText: 2021 Alliander N.V.
1+
# SPDX-FileCopyrightText: 2022 Alliander N.V.
22
#
33
# SPDX-License-Identifier: Apache-2.0
44

Lines changed: 13 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,28 @@
1-
# SPDX-FileCopyrightText: 2021 Alliander N.V.
1+
# SPDX-FileCopyrightText: 2022 Alliander N.V.
22
#
3-
# SPDX-License-Identifier: CC-BY-4.0
3+
# SPDX-License-Identifier: Apache-2.0
44

55
name: Add issues and pull request to project boards
66

7-
on: [issues, pull_request, pull_request_target]
7+
on: [ issues, pull_request, pull_request_target ]
88

99
jobs:
1010
github-actions-automate-projects:
1111
runs-on: ubuntu-latest
1212

1313
if: ${{ (github.event_name != 'pull_request_target' && github.actor != 'dependabot[bot]') || (github.actor == 'dependabot[bot]' && github.event_name == 'pull_request_target') }}
1414
steps:
15-
- name: add-new-issues-to-repository-based-project-column
16-
uses: docker://takanabe/github-actions-automate-projects:v0.0.1
17-
if: github.event_name == 'issues' && github.event.action == 'opened'
18-
env:
19-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
20-
GITHUB_PROJECT_URL: https://github.com/com-pas/compas-open-scd/projects/1
21-
GITHUB_PROJECT_COLUMN_NAME: To do
22-
- name: add-new-pull-request-to-repository-based-project-column
23-
uses: docker://takanabe/github-actions-automate-projects:v0.0.1
24-
if: (github.event_name == 'pull_request' || github.event_name == 'pull_request_target') && github.event.action == 'opened'
25-
env:
26-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
27-
GITHUB_PROJECT_URL: https://github.com/com-pas/compas-open-scd/projects/1
28-
GITHUB_PROJECT_COLUMN_NAME: To do
2915
- name: add-new-issues-to-organization-based-project-column
30-
uses: docker://takanabe/github-actions-automate-projects:v0.0.1
3116
if: github.event_name == 'issues' && github.event.action == 'opened'
32-
env:
33-
GITHUB_TOKEN: ${{ secrets.ORG_GITHUB_ACTION_SECRET }}
34-
GITHUB_PROJECT_URL: https://github.com/orgs/com-pas/projects/1
35-
GITHUB_PROJECT_COLUMN_NAME: To do
17+
uses: alex-page/[email protected]
18+
with:
19+
project: CoMPAS Issues Overview Board
20+
column: To do
21+
repo-token: ${{ secrets.ORG_GITHUB_ACTION_SECRET }}
3622
- name: add-new-pull-request-to-organization-based-project-column
37-
uses: docker://takanabe/github-actions-automate-projects:v0.0.1
3823
if: (github.event_name == 'pull_request' || github.event_name == 'pull_request_target') && github.event.action == 'opened'
39-
env:
40-
GITHUB_TOKEN: ${{ secrets.ORG_GITHUB_ACTION_SECRET }}
41-
GITHUB_PROJECT_URL: https://github.com/orgs/com-pas/projects/2
42-
GITHUB_PROJECT_COLUMN_NAME: To do
24+
uses: alex-page/[email protected]
25+
with:
26+
project: CoMPAS Pull Request Overview Board
27+
column: To do
28+
repo-token: ${{ secrets.ORG_GITHUB_ACTION_SECRET }}

.github/workflows/build-project.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# SPDX-FileCopyrightText: 2022 Alliander N.V.
2+
#
3+
# SPDX-License-Identifier: Apache-2.0
4+
15
name: Build Project
26

37
on:
@@ -18,17 +22,17 @@ jobs:
1822
- name: Checkout
1923
uses: actions/checkout@v3
2024

21-
- name: Set up Docker Buildx
22-
id: buildx
23-
if: ${{ github.event_name == 'pull_request' }}
24-
uses: docker/setup-buildx-action@v2
2525
- name: Cache Docker Register
2626
if: ${{ github.event_name == 'pull_request' }}
2727
uses: actions/cache@v3
2828
with:
2929
path: /tmp/.buildx-cache
3030
key: ${{ runner.os }}-buildx-${{ hashFiles('**/Dockerfile') }}
3131

32+
- name: Set up Docker Buildx
33+
id: buildx
34+
if: ${{ github.event_name == 'pull_request' }}
35+
uses: docker/setup-buildx-action@v2
3236
- name: Use Node.js 14.x
3337
uses: actions/setup-node@v3
3438
with:

.github/workflows/release-project.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# SPDX-FileCopyrightText: 2021 Alliander N.V.
1+
# SPDX-FileCopyrightText: 2022 Alliander N.V.
22
#
33
# SPDX-License-Identifier: Apache-2.0
44

@@ -18,14 +18,6 @@ jobs:
1818
- name: Checkout
1919
uses: actions/checkout@v3
2020

21-
- name: Set up Docker Buildx
22-
id: buildx
23-
uses: docker/setup-buildx-action@v2
24-
- name: Login to Docker Hub
25-
uses: docker/login-action@v2
26-
with:
27-
username: ${{ secrets.DOCKER_HUB_USERNAME }}
28-
password: ${{ secrets.DOCKER_HUB_TOKEN }}
2921
- name: Cache Docker Register
3022
uses: actions/cache@v3
3123
with:
@@ -37,6 +29,14 @@ jobs:
3729
shell: bash
3830
# Extra the tagname form the git reference, value of GITHUB_REF will be something like refs/tags/<tag_name>.
3931
run: echo "##[set-output name=tagname;]$(echo ${GITHUB_REF##*/})"
32+
- name: Set up Docker Buildx
33+
id: buildx
34+
uses: docker/setup-buildx-action@v2
35+
- name: Login to Docker Hub
36+
uses: docker/login-action@v2
37+
with:
38+
username: ${{ secrets.DOCKER_HUB_USERNAME }}
39+
password: ${{ secrets.DOCKER_HUB_TOKEN }}
4040
- name: Use Node.js 14.x
4141
uses: actions/setup-node@v3
4242
with:

0 commit comments

Comments
 (0)