From d06bdb7f6522b16b72685f2d610284ffac366492 Mon Sep 17 00:00:00 2001 From: Antonis Kalipetis Date: Thu, 1 Feb 2024 18:31:43 +0200 Subject: [PATCH 1/3] Add add-to-project workflow --- .github/workflows/add-to-project.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 .github/workflows/add-to-project.yml diff --git a/.github/workflows/add-to-project.yml b/.github/workflows/add-to-project.yml new file mode 100644 index 0000000..544dd6d --- /dev/null +++ b/.github/workflows/add-to-project.yml @@ -0,0 +1,17 @@ +name: Adds all issues to the project board + +on: + issues: + types: + - opened + +jobs: + add-to-project: + name: Add issue to project + runs-on: ubuntu-latest + steps: + - uses: actions/add-to-project@RELEASE_VERSION + with: + project-url: https://github.com/orgs/platformsh/projects/4 + # Token creation details: https://github.com/actions/add-to-project?tab=readme-ov-file#creating-a-pat-and-adding-it-to-your-repository + github-token: ${{ secrets.ADD_TO_PROJECT_PAT }} From e2f44cb29a4753465056a36304dd9a56d83d1c03 Mon Sep 17 00:00:00 2001 From: Antonis Kalipetis Date: Thu, 1 Feb 2024 18:33:44 +0200 Subject: [PATCH 2/3] Remove the private modules config from the CI --- .github/workflows/ci.yml | 7 ------- 1 file changed, 7 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 907ec34..bcc7a82 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -12,8 +12,6 @@ permissions: jobs: test: runs-on: ubuntu-latest - env: - GOPRIVATE: github.com/platformsh/platformify steps: - name: Check out repository code @@ -26,11 +24,6 @@ jobs: # has its own internal cache with better performance go-version: 1.20.x - - name: Configure git for private modules - env: - TOKEN: ${{ secrets.AKALIPETIS_PAT }} - run: git config --global url."https://akalipetis:${TOKEN}@github.com".insteadOf "https://github.com" - - name: Create fake PHP and .phar files run: | # These are needed so that the linter does not complain From e9fd86d6cd9b1e07fb1a82d6480b2adfd8aa58ca Mon Sep 17 00:00:00 2001 From: Antonis Kalipetis Date: Thu, 1 Feb 2024 18:33:58 +0200 Subject: [PATCH 3/3] Remove the private modules config from the GitLab CI --- .gitlab-ci.yml | 6 ------ 1 file changed, 6 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index e7a86d9..c9d3549 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -9,12 +9,6 @@ stages: variables: GOPATH: $CI_PROJECT_DIR/.go before_script: - - git config --global url."ssh://git@github.com/".insteadOf "https://github.com/" - - mkdir -p ~/.ssh && chmod 700 ~/.ssh - - echo 'github.com ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOMqqnkVzrm0SdG6UOoqKLsabgH5C9okWi0dh2l9GKJl' >> ~/.ssh/known_hosts - - echo "$SSH_PRIVATE_KEY" > ~/.ssh/id_ed25519 - - echo "$SSH_PUBLIC_KEY" > ~/.ssh/id_ed25519.pub - - chmod 400 ~/.ssh/id_* - mkdir -p .go - export PATH=$PATH:$GOPATH/bin cache: