Skip to content

Commit

Permalink
Merge pull request #169 from platformsh/feature/add-to-project
Browse files Browse the repository at this point in the history
Add to project and simplify private modules in CI
  • Loading branch information
akalipetis authored Feb 1, 2024
2 parents ad88f79 + e9fd86d commit a5737ee
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 13 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/add-to-project.yml
Original file line number Diff line number Diff line change
@@ -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 }}
7 changes: 0 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ permissions:
jobs:
test:
runs-on: ubuntu-latest
env:
GOPRIVATE: github.com/platformsh/platformify

steps:
- name: Check out repository code
Expand All @@ -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
Expand Down
6 changes: 0 additions & 6 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit a5737ee

Please sign in to comment.