diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 3371123..d50bdf4 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,8 +1,5 @@ name: Release -env: - AWS_REGION: ${{ vars.AWS_REGION }} - permissions: id-token: write contents: write @@ -12,54 +9,31 @@ on: branches: - main paths: - - '.github/workflows/release.yml' - - 'awesome/**' + - ".github/workflows/release.yml" + - "awesome/**" workflow_dispatch: - jobs: render-data: name: Render Data - runs-on: ubuntu-20.04 + runs-on: ubuntu-22.04 steps: - name: checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 ref: main token: ${{ secrets.GITHUB_TOKEN }} - - name: Configure aws credentials - uses: aws-actions/configure-aws-credentials@v1 - with: - role-to-assume: arn:aws:iam::${{ secrets.AWS_ACCOUNT_ID }}:role/${{ secrets.AWS_ROLE_NAME }} - aws-region: ${{ env.AWS_REGION }} - mask-aws-account-id: no - - - name: Set up Python 3.9 - uses: actions/setup-python@v4 + - name: Set up Python 3.11 + uses: actions/setup-python@v5 with: - python-version: 3.9 + python-version: "3.11" - name: Setup run: | make setup-ci - - - name: Get changed files in the docs folder - id: changed-files-specific - uses: tj-actions/changed-files@v35 - with: - files: | - awesome/opensource/data/*.json - awesome/companies/data/*.json - awesome/communities/data/*.json - awesome/digital-nomads/data/*.json - - - name: Notify SQS - env: - SQS_URL_DATA_INGESTION: ${{ secrets.SQS_URL_DATA_INGESTION }} - run: | - python3 scripts/notify.py --changed-files '${{ toJSON(steps.changed-files-specific.outputs) }}' + make lint - name: Render awesome README.md run: | @@ -77,16 +51,16 @@ jobs: - name: Trigger deployment workflow uses: actions/github-script@v6 with: - github-token: ${{ secrets.ACTION_WORKFLOWS }} - retries: 3 - script: | - const owner = 'italia-opensource'; - const repo = 'infrastructure'; - const event_type = 'deployment'; - const ref = 'main'; + github-token: ${{ secrets.ACTION_WORKFLOWS }} + retries: 3 + script: | + const owner = 'italia-opensource'; + const repo = 'infrastructure'; + const event_type = 'deployment'; + const ref = 'main'; - github.rest.repos.createDispatchEvent({ - owner, - repo, - event_type - }); \ No newline at end of file + github.rest.repos.createDispatchEvent({ + owner, + repo, + event_type + }); diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 213f616..6558351 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -5,24 +5,27 @@ on: branches: - main paths: - - '.github/workflows/test.yml' - - 'awesome/**' + - ".github/workflows/test.yml" + - "awesome/**" + - "scheme/**" + - "scripts/render.py" + - "scripts/check.py" types: [opened, synchronize] jobs: test-data: name: Test Data - runs-on: ubuntu-20.04 + runs-on: ubuntu-22.04 steps: - name: Check out code - uses: actions/checkout@v3 + uses: actions/checkout@v4 - - name: Set up Python 3.9 - uses: actions/setup-python@v4 + - name: Set up Python 3.11 + uses: actions/setup-python@v5 with: - python-version: 3.9 + python-version: "3.11" - name: Setup and test run: | make setup-ci - make lint \ No newline at end of file + make lint