Require project name while checking for application existance #112
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | |
pull_request: | |
types: [opened, synchronize] | |
jobs: | |
pr: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Prepare repository | |
run: git fetch --tags | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 16 | |
- uses: actions/cache@v3 | |
with: | |
path: ./node_modules | |
key: modules-${{ hashFiles('package-lock.json') }} | |
- run: npm ci | |
- uses: wearerequired/lint-action@v2 | |
with: | |
eslint: true | |
eslint_extensions: ts | |
prettier: true | |
prettier_extensions: ts,json,js,yml | |
# do not autofix for bots (unlikely this scenario will be encountered) | |
auto_fix: ${{ env.BOT != '1' && true || false }} | |
commit_message: 'chore(lint): Fix code style issues with ${linter}' | |
github_token: ${{ secrets.GITHUB_TOKEN }} # NOTE: Important: Make sure to exclude the .github directory in your ESLint and Prettier configs as the default GITHUB_TOKEN cannot be used to update workflow files due to the missing workflow permission | |
git_email: '[email protected]' | |
eslint_args: '--max-warnings 0' | |
- run: npm run ci:build | |
- name: Test Invocation | |
env: | |
INPUT_ACCESSTOKEN: dummyToken | |
INPUT_ACTION: upsert | |
INPUT_BASEURL: http://localhost | |
INPUT_CLUSTERNAME: in-cluster | |
INPUT_DRYRUN: true | |
INPUT_INFO: '{}' | |
INPUT_LABELS: '{}' | |
INPUT_NAME: test | |
INPUT_NAMESPACE: default | |
INPUT_PATH: fixtures | |
INPUT_PROJECT: default | |
INPUT_TOKENS: '{"TAG": "latest"}' | |
INPUT_VALUESFILE: fixtures/values.yaml | |
INPUT_REPOURL: ${{ github.server_url }}/${{ github.repository }} | |
INPUT_REPOWEBURL: ${{ github.server_url }}/${{ github.repository }} | |
INPUT_REPOREVISION: ${{ github.sha }} | |
INPUT_PRNUMBER: ${{ github.event.number }} | |
run: node dist/index.js | |
- name: Version Dry Run | |
env: | |
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: npx auto shipit -d | |
debug: | |
if: ${{ failure() }} | |
needs: [pr] | |
runs-on: ubuntu-latest | |
steps: | |
- run: | | |
set | |
cat $GITHUB_EVENT_PATH |